diff options
author | Sarven Capadisli <csarven@status.net> | 2009-09-21 18:30:22 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-09-21 18:30:22 +0000 |
commit | 470b34ea47ff97bbcbffb49c8a456da358b29578 (patch) | |
tree | 7b1d578ef99737d2fc1daa67c79af8414d0405ab | |
parent | 13de845e95da9ea579516c4480789819c9a26edd (diff) |
Escaping internal JavaScript
-rw-r--r-- | plugins/Realtime/RealtimePlugin.php | 10 |
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; |