SECURITY: fix possible XSS with badges (#6912)

SECURITY: fix possible XSS with badges (#6912)

diff --git a/app/assets/javascripts/admin/templates/user-badges.hbs b/app/assets/javascripts/admin/templates/user-badges.hbs
index 2f5ce5b..92e4403 100644
--- a/app/assets/javascripts/admin/templates/user-badges.hbs
+++ b/app/assets/javascripts/admin/templates/user-badges.hbs
@@ -16,7 +16,7 @@
     <form class="form-horizontal">
       <div>
       <label>{{i18n 'admin.badges.badge'}}</label>
-      {{combo-box filterable=true value=selectedBadgeId content=grantableBadges}}
+      {{combo-box forceEscape=true filterable=true value=selectedBadgeId content=grantableBadges}}
       </div>
       <div>
       <label>{{i18n 'admin.badges.reason'}}</label>

GitHub sha: 52f2e0d6

2 Likes