]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update XMPPHP to last upstream release (r77), includes an XML quoting fix.
authorBrion Vibber <brion@pobox.com>
Fri, 30 Apr 2010 20:37:40 +0000 (13:37 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 30 Apr 2010 20:37:40 +0000 (13:37 -0700)
extlib/XMPPHP/XMPP.php

index 429f45e565eb57648930988c8133b73bd6d26c5d..c0f8963396bdb5e2e6d298480bf36ca35988fac8 100644 (file)
@@ -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 .= "/>";