diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-05-31 18:54:14 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-05-31 18:54:14 +0400 |
commit | 6244c436ae58b67f162a50fdf89cce726f854d59 (patch) | |
tree | dcf69241f1f4b04927b19f945a25c30cd2341b27 /files_videoviewer | |
parent | 69f1264ace4f66d8f68ccb9dc691649bed5ed3aa (diff) |
Escape HTML
Diffstat (limited to 'files_videoviewer')
-rw-r--r-- | files_videoviewer/js/viewer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files_videoviewer/js/viewer.js b/files_videoviewer/js/viewer.js index 133e712c9..8af689008 100644 --- a/files_videoviewer/js/viewer.js +++ b/files_videoviewer/js/viewer.js @@ -4,7 +4,7 @@ var videoViewer = { '<source type="%type%" src="%src%" />' + '</video>', show : function () { - $('<div id="videoviewer_overlay" style="display:none;"></div><div id="videoviewer_popup"><div id="videoviewer_container"><a class="box-close" id="box-close" href="#"></a><h3>'+videoViewer.file+'</h3></div></div>').appendTo('body'); + $('<div id="videoviewer_overlay" style="display:none;"></div><div id="videoviewer_popup"><div id="videoviewer_container"><a class="box-close" id="box-close" href="#"></a><h3>'+escapeHTML(videoViewer.file)+'</h3></div></div>').appendTo('body'); $('#videoviewer_overlay').fadeIn('fast',function(){ $('#videoviewer_popup').fadeIn('fast'); |