From 55494720e56391ee8ddc55b43307af03a4bcb4b9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 13 Jul 2009 03:15:12 -0400 Subject: add slashes to JSON so it goes across meteor.js channel correctly --- plugins/Meteor/MeteorPlugin.php | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/Meteor') diff --git a/plugins/Meteor/MeteorPlugin.php b/plugins/Meteor/MeteorPlugin.php index eca7f627e..07285552c 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); -- cgit v1.2.3-54-g00ecf