Skip to content

Commit

Permalink
Sanitize user input
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasReschke committed Oct 12, 2012
1 parent d7f4394 commit e45f36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_versions/js/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function createVersionsDropdown(filename, files) {

var historyUrl = OC.linkTo('files_versions', 'history.php') + '?path='+encodeURIComponent( $( '#dir' ).val() ).replace( /%2F/g, '/' )+'/'+encodeURIComponent( filename );

var html = '<div id="dropdown" class="drop drop-versions" data-file="'+files+'">';
var html = '<div id="dropdown" class="drop drop-versions" data-file="'+escapeHTML(files)+'">';
html += '<div id="private">';
html += '<select data-placeholder="Saved versions" id="found_versions" class="chzen-select" style="width:16em;">';
html += '<option value=""></option>';
Expand Down

0 comments on commit e45f36c

Please sign in to comment.