Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Fichtelmann <max.fichtelmann@procilon.de>2019-07-29 18:48:33 +0300
committerMax Fichtelmann <max.fichtelmann@procilon.de>2019-07-29 19:16:37 +0300
commit4977f235f60a4ae4257f79b7d96d3cf109850072 (patch)
tree66c752ef75d3e841ee7b2e07f317c35368720f92 /apps/theming/js
parent1d29636008957ea39f9be06d38bb5998f699e798 (diff)
prevent potential XSS via unchecked use innerHTML
Signed-off-by: Max Fichtelmann <max.fichtelmann@procilon.de>
Diffstat (limited to 'apps/theming/js')
-rw-r--r--apps/theming/js/3rdparty/jscolor/jscolor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/theming/js/3rdparty/jscolor/jscolor.js b/apps/theming/js/3rdparty/jscolor/jscolor.js
index 2bdd4607b41..cad36eab92a 100644
--- a/apps/theming/js/3rdparty/jscolor/jscolor.js
+++ b/apps/theming/js/3rdparty/jscolor/jscolor.js
@@ -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)) {