Skip to content

Commit e45f36c

Browse files
committed
Sanitize user input
1 parent d7f4394 commit e45f36c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_versions/js/versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function createVersionsDropdown(filename, files) {
4545

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

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

0 commit comments

Comments
 (0)