Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Commit

Permalink
More sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasReschke committed May 10, 2016
1 parent efdf773 commit bc47e3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files_videoviewer/js/viewer.js
Expand Up @@ -12,9 +12,9 @@ var videoViewer = {
$('#box-close').click(videoViewer.hidePlayer);
var size = videoViewer.UI.getSize();
var playerView = videoViewer.UI.playerTemplate.replace(/%width%/g, size.width)
.replace(/%height%/g, size.height)
.replace(/%type%/g, videoViewer.mime)
.replace(/%src%/g, videoViewer.location)
.replace(/%height%/g, escapeHTML(size.height))
.replace(/%type%/g, escapeHTML(videoViewer.mime))
.replace(/%src%/g, escapeHTML(videoViewer.location))
;
$(playerView).prependTo('#videoviewer_container');
},
Expand Down

0 comments on commit bc47e3a

Please sign in to comment.