diff options
author | Brion Vibber <brion@pobox.com> | 2010-04-30 13:37:40 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-04-30 13:37:40 -0700 |
commit | a39efbd8d8996f4e9375c397b2f5e8c149fcff68 (patch) | |
tree | 543a97e18de431b66678a9a2e6d3949758bacb1f /extlib/XMPPHP | |
parent | ecfe6b89443227854c057bb45b107368b860ad02 (diff) |
Update XMPPHP to last upstream release (r77), includes an XML quoting fix.
Diffstat (limited to 'extlib/XMPPHP')
-rw-r--r-- | extlib/XMPPHP/XMPP.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extlib/XMPPHP/XMPP.php b/extlib/XMPPHP/XMPP.php index 429f45e56..c0f896339 100644 --- a/extlib/XMPPHP/XMPP.php +++ b/extlib/XMPPHP/XMPP.php @@ -171,7 +171,7 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { $body = htmlspecialchars($body); $subject = htmlspecialchars($subject); - $out = "<message from='{$this->fulljid}' to='$to' type='$type'>"; + $out = "<message from=\"{$this->fulljid}\" to=\"$to\" type='$type'>"; if($subject) $out .= "<subject>$subject</subject>"; $out .= "<body>$body</body>"; if($payload) $out .= $payload; @@ -194,7 +194,7 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { if($show == 'unavailable') $type = 'unavailable'; $out = "<presence"; - if($to) $out .= " to='$to'"; + if($to) $out .= " to=\"$to\""; if($type) $out .= " type='$type'"; if($show == 'available' and !$status) { $out .= "/>"; |