From e530a0868d5743e34b7c3ad171e57e0f56fd4147 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 30 Jul 2011 08:17:57 -0400 Subject: [PATCH] Fix Bug#3260 for 1.0.x --- plugins/Realtime/RealtimePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { '. -- 2.39.5