Merge pull request #16599 from nextcloud/fix/xss/on-favorite-file

Fix/xss/on favorite file
pull/16616/head
Roeland Jago Douma 6 years ago committed by GitHub
commit 53330ce1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/files/js/tagsplugin.js
  2. 2
      apps/theming/js/3rdparty/jscolor/jscolor.js

@ -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');

@ -1100,7 +1100,7 @@ var jsc = {
if (jsc.isElementType(this.valueElement, 'input')) {
this.valueElement.value = value;
} else {
this.valueElement.innerHTML = value;
this.valueElement.innerHTML = _.escape(value);
}
}
if (!(flags & jsc.leaveStyle)) {

Loading…
Cancel
Save