mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: 2 XSSs in post gutter and local oneboxes
This commit is contained in:
@@ -29,7 +29,7 @@ export default createWidget('post-gutter', {
|
||||
seenTitles[title] = true;
|
||||
titleCount++;
|
||||
if (result.length < toShow) {
|
||||
const linkBody = [new RawHtml({html: `<span>${Discourse.Emoji.unescape(title)}</span>`})];
|
||||
const linkBody = [new RawHtml({html: `<span>${Discourse.Emoji.unescape(Handlebars.Utils.escapeExpression(title))}</span>`})];
|
||||
if (l.clicks) {
|
||||
linkBody.push(h('span.badge.badge-notification.clicks', l.clicks.toString()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user