summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-13 03:15:12 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-13 03:15:12 -0400
commit55494720e56391ee8ddc55b43307af03a4bcb4b9 (patch)
treea91f995fc8ae3d80455d329c8c5a3530e5d5882a
parent221f13a10d748b3f6f746d3d82e2aca27306c020 (diff)
add slashes to JSON so it goes across meteor.js channel correctly
-rw-r--r--plugins/Meteor/MeteorPlugin.php1
1 files changed, 1 insertions, 0 deletions
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);