Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix XSS when adding a file with a malicious name to favorites
Signed-off-by: Max Fichtelmann <[email protected]>
  • Loading branch information
MaxFichtelmann authored and Backportbot committed Jul 30, 2019
commit 46a8af58c91ef2d95e99bd68cc6a30c77655e599
2 changes: 1 addition & 1 deletion apps/files/js/tagsplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
var innerTagA = document.createElement('A');
innerTagA.setAttribute("href", url);
innerTagA.setAttribute("class", "nav-icon-files svg");
innerTagA.innerHTML = appName;
innerTagA.innerHTML = _.escape(appName);

var length = listLIElements.length + 1;
var innerTagLI = document.createElement('li');
Expand Down