Skip to content

Commit

Permalink
fixed another case of html entities not being encoded property
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Nov 15, 2021
1 parent 42c00e7 commit b5d0cfc
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion js/jquery.plupload.queue/jquery.plupload.queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ used as it is.

fileList.append(
'<li id="' + file.id + '">' +
'<div class="plupload_file_name"><span>' + file.name + '</span></div>' +
'<div class="plupload_file_name"><span>' + plupload.xmlEncode(file.name) + '</span></div>' +
'<div class="plupload_file_action"><a href="#"></a></div>' +
'<div class="plupload_file_status">' + file.percent + '%</div>' +
'<div class="plupload_file_size">' + plupload.formatSize(file.size) + '</div>' +
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.plupload.queue/jquery.plupload.queue.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/jquery.ui.plupload/jquery.ui.plupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ $.widget("ui.plupload", {
return ext;

default:
return file[$1] || '';
return plupload.xmlEncode(file[$1] || '');
}
});
});
Expand Down
Loading

0 comments on commit b5d0cfc

Please sign in to comment.