FIX: Ensure values are escaped in select-kit dropdowns (#16586)

The values in Discourse dropdown menus only come from admin-defined strings, not unsanitised end-user input, so this lack of escaping was not exploitable.
This commit is contained in:
David Taylor 2022-04-28 16:31:41 +01:00 committed by GitHub
parent bb57be95f0
commit d8b68e00c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
{{yield}}
{{else}}
<span class="d-button-label">
{{html-safe itemName}}
{{itemName}}
</span>
{{/if}}
</button>