From 55494720e56391ee8ddc55b43307af03a4bcb4b9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 13 Jul 2009 03:15:12 -0400 Subject: [PATCH] add slashes to JSON so it goes across meteor.js channel correctly --- plugins/Meteor/MeteorPlugin.php | 1 + 1 file changed, 1 insertion(+) 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);