SECURITY: XSS with title selector on preferences page

Note this is very low severity as the group needs to be created with a
default title that contains HTML, and group creation is restricted to
staff members right now.
This commit is contained in:
Robin Ward 2019-07-09 15:45:03 -04:00
parent 4fd470e63d
commit d1c12539dd

View File

@ -718,7 +718,9 @@ const User = RestModel.extend({
}
});
return _.uniq(titles).sort();
return _.uniq(titles)
.sort()
.map(Ember.Handlebars.Utils.escapeExpression);
},
@computed("user_option.text_size_seq", "user_option.text_size")