diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-12-09 09:36:41 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2015-12-09 09:36:41 +0100 |
| commit | 07425d407f9b017baaa85afa68aff0b798df5621 (patch) | |
| tree | 91da7f74b671358224b797627e713f162ade0467 /addons/web/static/src/js/framework/utils.js | |
| parent | 623fbf58f0a0798e735b831fdc29798b6d3c4316 (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/static/src/js/framework/utils.js')
0 files changed, 0 insertions, 0 deletions
