Skip to content

Commit 599c93c

Browse files
authored
Merge pull request #242 from modoboa/fix-xss-compose-mail
Fixed XSS issue in compose form
2 parents 4c8030f + 2d6e540 commit 599c93c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: modoboa_webmail/static/modoboa_webmail/js/webmail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ Webmail.prototype = {
11411141
item.display_name,
11421142
escape('<{0}>'.format(item.address)));
11431143
}
1144-
return '<div>{0}</div>'.format(item.address);
1144+
return '<div>{0}</div>'.format(htmlEncode(item.address));
11451145
};
11461146
var apiUrl = this.options.contactListUrl;
11471147

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
modoboa>=2.0.0
1+
modoboa>=2.0.4
22
chardet
33
lxml

0 commit comments

Comments
 (0)