Merge pull request #7 from kmontag/patch-1

XML attribute-printing fix
This commit is contained in:
Christian Weiske 2011-06-10 02:58:56 -07:00
commit fd9cac3c17

View File

@ -115,7 +115,7 @@ class XMPPHP_XMLObj {
foreach($this->attrs as $key => $value) { foreach($this->attrs as $key => $value) {
if($key != 'xmlns') { if($key != 'xmlns') {
$value = htmlspecialchars($value); $value = htmlspecialchars($value);
$str .= "$key='$value' "; $str .= "$key=\"$value\" ";
} }
} }
$str .= ">"; $str .= ">";