summaryrefslogtreecommitdiff
path: root/plugins/Realtime/RealtimePlugin.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-09-21 18:30:22 +0000
committerSarven Capadisli <csarven@status.net>2009-09-21 18:30:22 +0000
commit470b34ea47ff97bbcbffb49c8a456da358b29578 (patch)
tree7b1d578ef99737d2fc1daa67c79af8414d0405ab /plugins/Realtime/RealtimePlugin.php
parent13de845e95da9ea579516c4480789819c9a26edd (diff)
Escaping internal JavaScript
Diffstat (limited to 'plugins/Realtime/RealtimePlugin.php')
-rw-r--r--plugins/Realtime/RealtimePlugin.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php
index 1703ef099..7a612a406 100644
--- a/plugins/Realtime/RealtimePlugin.php
+++ b/plugins/Realtime/RealtimePlugin.php
@@ -98,9 +98,13 @@ class RealtimePlugin extends Plugin
}
$action->elementStart('script', array('type' => 'text/javascript'));
- $action->raw("$(document).ready(function() { ");
- $action->raw($this->_updateInitialize($timeline, $user_id));
- $action->raw(" });");
+ $action->raw('
+ <!--
+ $(document).ready(function() {
+ ' . $this->_updateInitialize($timeline, $user_id) . '
+ });
+ -->
+ ');
$action->elementEnd('script');
return true;