mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: self XSS by admin by editing badge name
This commit is contained in:
parent
6538874064
commit
8abf652dc3
@ -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 New Issue
Block a user