summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-01-09 14:40:20 +0000
committerNans Lefebvre <len@odoo.com>2019-05-03 08:02:32 +0000
commit7ffedecf82b595e62e94bd7ba4048c8deda952c3 (patch)
tree73a65c368d48c7d4ff5dd4884f7c18061a87ef18 /addons/web/static/src/js/views/basic/basic_controller.js
parent4dc831821307753672641cbbe72cca57fbba38f9 (diff)
[FIX] base: put parsing of an email 'from' into a try except block
The "from" of an email is expected to follow the regex "name <address>(, name <address>)*". We simply split the from on the commas "," and try to interpret each piece as a (name, address) pair. If a "from" contains a name that is not quoted, and contains special characters before the comma, then we would try to encode that name into an email address, and fail on a UnicodeEncodeError. E.g. the following "🐧, <a@a.com>" would be parsed as [('', '🐧'),('', 'a@a.com')] thus Odoo would crash on trying to use 🐧 as email address. With this commit we would just mess up the name in these situations, by ignoring failures. opw 1923429 closes odoo/odoo#33145 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions