diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-04-30 23:07:58 +0200 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-04-30 23:07:58 +0200 |
commit | dacd8f7f480b005ca1c7d60eaa167055e6c71c20 (patch) | |
tree | 5498a6ee4718571bed789a94d22008540ce905f7 /extlib/XMPPHP/XMPP.php | |
parent | 7ec5e7cd7668c2d34f8cb8e7c22faecc13bc0a13 (diff) | |
parent | f85fc944b7ca3d2faaa7b7451068e37f2c5b68a7 (diff) |
Merge branch '0.9.x' of git://gitorious.org/statusnet/mainline into 0.9.x
Diffstat (limited to 'extlib/XMPPHP/XMPP.php')
-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 .= "/>"; |