Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit 3b3b3b7

Browse files
authored
Merge pull request #244 from modoboa/fix/xss_issue_to_field
Fixed XSS issue in To field
2 parents dd4ab50 + 8f4e51b commit 3b3b3b7

File tree

1 file changed

+1
-1
lines changed
  • modoboa_webmail/static/modoboa_webmail/js

1 file changed

+1
-1
lines changed

modoboa_webmail/static/modoboa_webmail/js/webmail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ Webmail.prototype = {
11381138
var renderFunc = function (item, escape) {
11391139
if (item.display_name) {
11401140
return '<div>{0} {1}</div>'.format(
1141-
item.display_name,
1141+
htmlEncode(item.display_name),
11421142
escape('<{0}>'.format(item.address)));
11431143
}
11441144
return '<div>{0}</div>'.format(htmlEncode(item.address));

0 commit comments

Comments
 (0)