mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -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' : '' ) +
|
html += "data-drop-close=\"true\" class=\"badge-category" + (restricted ? ' restricted' : '' ) +
|
||||||
extraClasses + "\" ";
|
extraClasses + "\" ";
|
||||||
|
name = Handlebars.Utils.escapeExpression(name);
|
||||||
// Add description if we have it
|
// Add description if we have it
|
||||||
if (description) html += "title=\"" + Handlebars.Utils.escapeExpression(description) + "\" ";
|
if (description) html += "title=\"" + Handlebars.Utils.escapeExpression(description) + "\" ";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue