mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
SECURITY: topic titles can show up in user page unescaped when streamed in
This commit is contained in:
parent
27aaed0aa5
commit
904e532439
1 changed files with 1 additions and 0 deletions
|
@ -188,6 +188,7 @@ const User = RestModel.extend({
|
|||
if ((this.get('stream.filter') || ua.action_type) !== ua.action_type) return;
|
||||
if (!this.get('stream.filter') && !this.inAllStream(ua)) return;
|
||||
|
||||
ua.title = Discourse.Emoji.unescape(Handlebars.Utils.escapeExpression(ua.title));
|
||||
const action = UserAction.collapseStream([UserAction.create(ua)]);
|
||||
stream.set('itemsLoaded', stream.get('itemsLoaded') + 1);
|
||||
stream.get('content').insertAt(0, action[0]);
|
||||
|
|
Loading…
Reference in a new issue