-
- Downloads
[FIX] mail.py: escape plaintext email
A plaintext email is displayed in a `<pre/>` tag to conserve spacing. But since there is no escaping, if in this text there was XML tags or HTML entities, they would appear as HTML in browser which is not wanted. Do note that this was not a security issue since the content will still be subjected to the checks and foundling of HTML emails. Without the change, the added test would fail because character &,<,> were not escaped. opw-2242323 closes #50003 closes odoo/odoo#50101 X-original-commit: 932532b5 Signed-off-by:Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
Please register or sign in to comment