add slashes to JSON so it goes across meteor.js channel correctly
This commit is contained in:
parent
221f13a10d
commit
55494720e5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user