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:
Kevin Montag 2011-06-10 02:13:34 -07:00
parent 07a9b7ea23
commit 03b7dc6106
1 changed files with 1 additions and 1 deletions

View File

@ -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 .= ">";