chat: Ensure that `ctx.text` is interpreted as HTML
parent
a3a0ff7bc1
commit
d01b593d3c
|
@ -194,7 +194,7 @@ exports.chat = (() => {
|
||||||
.append($('<span>').addClass('author-name').text(ctx.authorName))
|
.append($('<span>').addClass('author-name').text(ctx.authorName))
|
||||||
// ctx.text was HTML-escaped before calling the hook. Hook functions are trusted
|
// ctx.text was HTML-escaped before calling the hook. Hook functions are trusted
|
||||||
// to not introduce an XSS vulnerability by adding unescaped user input.
|
// to not introduce an XSS vulnerability by adding unescaped user input.
|
||||||
.append(ctx.text),
|
.append($('<div>').html(ctx.text).contents()),
|
||||||
sticky: ctx.sticky,
|
sticky: ctx.sticky,
|
||||||
time: 5000,
|
time: 5000,
|
||||||
position: 'bottom',
|
position: 'bottom',
|
||||||
|
|
Loading…
Reference in New Issue