Skip to content

Commit

Permalink
Merge pull request #244 from modoboa/fix/xss_issue_to_field
Browse files Browse the repository at this point in the history
Fixed XSS issue in To field
  • Loading branch information
tonioo committed Feb 16, 2023
2 parents dd4ab50 + 8f4e51b commit 3b3b3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modoboa_webmail/static/modoboa_webmail/js/webmail.js
Expand Up @@ -1138,7 +1138,7 @@ Webmail.prototype = {
var renderFunc = function (item, escape) {
if (item.display_name) {
return '<div>{0} {1}</div>'.format(
item.display_name,
htmlEncode(item.display_name),
escape('<{0}>'.format(item.address)));
}
return '<div>{0}</div>'.format(htmlEncode(item.address));
Expand Down

0 comments on commit 3b3b3b7

Please sign in to comment.