From: Evan Prodromou Date: Sat, 30 Jul 2011 12:17:57 +0000 (-0400) Subject: Fix Bug#3260 for 1.0.x X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e530a0868d5743e34b7c3ad171e57e0f56fd4147;p=quix0rs-gnu-social.git Fix Bug#3260 for 1.0.x --- diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index eca3a8b029..84a1c7e86e 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -147,7 +147,7 @@ class RealtimePlugin extends Plugin $pluginPath = common_path('plugins/Realtime/'); $keepalive = common_local_url('keepalivechannel', array('channelkey' => $channel->channel_key)); $close = common_local_url('closechannel', array('channelkey' => $channel->channel_key)); - $realtimeUI = ' RealtimeUpdate.initActions("'.$url.'", "'.$timeline.'", "'. $pluginPath .'", "'.$keepalive.'", "'.$close.'"); '; + $realtimeUI = ' RealtimeUpdate.initActions('.json_encode($url).', '.json_encode($timeline).', '.json_encode($pluginPath).', '.json_encode($keepalive).', '.json_encode($close).'); '; } $script = ' $(document).ready(function() { '.