From: Evan Prodromou Date: Sat, 30 Jul 2011 11:45:07 +0000 (-0400) Subject: json_encode() realtime arguments (closes Bug#3260) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5517741909f88b42133062e622a556540b61526d;p=quix0rs-gnu-social.git json_encode() realtime arguments (closes Bug#3260) --- 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() { '.