]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add slashes to JSON so it goes across meteor.js channel correctly
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 13 Jul 2009 07:15:12 +0000 (03:15 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 13 Jul 2009 07:15:12 +0000 (03:15 -0400)
plugins/Meteor/MeteorPlugin.php

index eca7f627e5e716eb55d95d70bb0845f3e174437b..07285552cb2f8089cc356c58afc4ebecf96ae2b1 100644 (file)
@@ -161,6 +161,7 @@ class MeteorPlugin extends Plugin
 
     protected function _addMessage($channel, $message)
     {
+        $message = addslashes($message);
         $cmd = "ADDMESSAGE {$this->channelbase}{$channel} $message\n";
         $cnt = fwrite($this->_socket, $cmd);
         $result = fgets($this->_socket);