mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
prevent potential XSS via unchecked use innerHTML
Signed-off-by: Max Fichtelmann <max.fichtelmann@procilon.de>
This commit is contained in:
parent
46a8af58c9
commit
cadd6fa929
1 changed files with 1 additions and 1 deletions
2
apps/theming/js/3rdparty/jscolor/jscolor.js
vendored
2
apps/theming/js/3rdparty/jscolor/jscolor.js
vendored
|
|
@ -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…
Reference in a new issue