prevent potential XSS via unchecked use innerHTML

Signed-off-by: Max Fichtelmann <max.fichtelmann@procilon.de>
This commit is contained in:
Max Fichtelmann 2019-07-29 17:48:33 +02:00 committed by Backportbot
parent af87bd2f60
commit 951147c6e9
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {