From: Evan Prodromou Date: Mon, 13 Jul 2009 07:15:12 +0000 (-0400) Subject: add slashes to JSON so it goes across meteor.js channel correctly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=55494720e56391ee8ddc55b43307af03a4bcb4b9;p=quix0rs-gnu-social.git add slashes to JSON so it goes across meteor.js channel correctly --- diff --git a/plugins/Meteor/MeteorPlugin.php b/plugins/Meteor/MeteorPlugin.php index eca7f627e5..07285552cb 100644 --- a/plugins/Meteor/MeteorPlugin.php +++ b/plugins/Meteor/MeteorPlugin.php @@ -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);