mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix XSS when adding a file with a malicious name to favorites
Signed-off-by: Max Fichtelmann <max.fichtelmann@procilon.de>
This commit is contained in:
parent
e21f440990
commit
1d29636008
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue