]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
json_encode() realtime arguments (closes Bug#3260)
authorEvan Prodromou <evan@status.net>
Sat, 30 Jul 2011 11:45:07 +0000 (07:45 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 30 Jul 2011 11:45:07 +0000 (07:45 -0400)
plugins/Realtime/RealtimePlugin.php

index 246b1f9735d9ef8596115c17cf95708404239649..634aab4c0080c453fcfbf9c97806a5aba37de177 100644 (file)
@@ -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() { '.