mirror of https://github.com/zulip/zulip.git
search_suggestion: Add escaping for email addresses.
This is probably unnecessary, but makes me feel better about every code path in this file doing proper escaping to avoid XSS issues.
This commit is contained in:
parent
65b9d9e0f3
commit
0db715d222
|
@ -166,7 +166,7 @@ function get_group_suggestions(all_persons, last, operators) {
|
||||||
negated: negated,
|
negated: negated,
|
||||||
};
|
};
|
||||||
var name = highlight_person(last_part, person);
|
var name = highlight_person(last_part, person);
|
||||||
var description = prefix + ' ' + all_but_last_part + ',' + name;
|
var description = prefix + ' ' + Handlebars.Utils.escapeExpression(all_but_last_part) + ',' + name;
|
||||||
var terms = [term];
|
var terms = [term];
|
||||||
if (negated) {
|
if (negated) {
|
||||||
terms = [{operator: 'is', operand: 'private'}, term];
|
terms = [{operator: 'is', operand: 'private'}, term];
|
||||||
|
|
Loading…
Reference in New Issue