summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/transcoder.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2015-12-09 09:36:41 +0100
committerNicolas Martinelli <nim@odoo.com>2015-12-09 09:36:41 +0100
commit07425d407f9b017baaa85afa68aff0b798df5621 (patch)
tree91da7f74b671358224b797627e713f162ade0467 /addons/web_editor/static/src/js/transcoder.js
parent623fbf58f0a0798e735b831fdc29798b6d3c4316 (diff)
[FIX] mail: replace special characters
When the delimiter '@' is used in the composer, a regular expression is built in order to suggest followers. However, if this regular expression is incorrect, it causes a crash since RegExp will throw a syntax error. Since a new regular expression is built for each new character the user types, this situation can occur very easily. For example, typing '@(' will cause a crash. This fix replaces characters which may easily lead to a syntax error by a space.
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
0 files changed, 0 insertions, 0 deletions