SECURITY: 2 XSSs in post gutter and local oneboxes

This commit is contained in:
Régis Hanol
2016-05-14 00:08:19 +02:00
parent fe5b0cf36f
commit 5a75972b0b
2 changed files with 2 additions and 2 deletions

View File

@@ -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()));
}