mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
SECURITY: self XSS by admin by editing badge name
This commit is contained in:
parent
6538874064
commit
8abf652dc3
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ Discourse.HTML = {
|
|||
|
||||
html += "data-drop-close=\"true\" class=\"badge-category" + (restricted ? ' restricted' : '' ) +
|
||||
extraClasses + "\" ";
|
||||
|
||||
name = Handlebars.Utils.escapeExpression(name);
|
||||
// Add description if we have it
|
||||
if (description) html += "title=\"" + Handlebars.Utils.escapeExpression(description) + "\" ";
|
||||
|
||||
|
|
Loading…
Reference in a new issue