From 5517741909f88b42133062e622a556540b61526d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 30 Jul 2011 07:45:07 -0400 Subject: [PATCH] json_encode() realtime arguments (closes Bug#3260) --- 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 246b1f9735..634aab4c00 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -102,7 +102,7 @@ class RealtimePlugin extends Plugin } else { $pluginPath = common_path('plugins/Realtime/'); - $realtimeUI = ' RealtimeUpdate.initActions("'.$url.'", "'.$timeline.'", "'. $pluginPath .'");'; + $realtimeUI = ' RealtimeUpdate.initActions('.json_encode($url).', '.json_encode($timeline).', '. json_encode($pluginPath).');'; } $script = ' $(document).ready(function() { '. -- 2.39.5