add slashes to JSON so it goes across meteor.js channel correctly

This commit is contained in:
Evan Prodromou 2009-07-13 03:15:12 -04:00
parent 221f13a10d
commit 55494720e5

View 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);