Use double quotes when printing XML attributes, since htmlspecialchars won't convert single quotes in the attribute values by default.
This commit is contained in:
parent
07a9b7ea23
commit
03b7dc6106
@ -115,7 +115,7 @@ class XMPPHP_XMLObj {
|
||||
foreach($this->attrs as $key => $value) {
|
||||
if($key != 'xmlns') {
|
||||
$value = htmlspecialchars($value);
|
||||
$str .= "$key='$value' ";
|
||||
$str .= "$key=\"$value\" ";
|
||||
}
|
||||
}
|
||||
$str .= ">";
|
||||
|
Loading…
Reference in New Issue
Block a user