Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
prevent potential XSS via unchecked use innerHTML
Signed-off-by: Max Fichtelmann <[email protected]>
  • Loading branch information
MaxFichtelmann committed Jul 29, 2019
commit 4977f235f60a4ae4257f79b7d96d3cf109850072
2 changes: 1 addition & 1 deletion apps/theming/js/3rdparty/jscolor/jscolor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down