Romain Derie
bcc088c348
[FIX] web, web_editor: Better email validation with regex (JS)
...
This commit improves link creation in web editor.
Before this commit, anything with a @ would be considered as valid email which
is obviously not the case. It would then be prefixed by 'mailto:'.
This was causing 2 issues:
- URL with @ symbol in it would have 'mailto:' added as prefix, like google
maps coordinates.
eg: mailto:http://www.google.com/maps/whatever/@312211.22,321321
- Incorrect emails would go through (eg: @@@, ko@k@k@, mail@mail)
Now, we will try to detect and identify valid emails from invalid emails from
URLs. It will also handle 'mailto:' directly typed in the input.
This commit comes with it's counterpart in enterprise https://github.com/odoo/enterprise/pull/1859
This closes #11984 , closes #22936
Note that there is a WIP in master to use this new is_email function
everywhere we try to validate emails. It will aim to uniformize email
validation in odoo's javascript that are often performed with different mean
here and there, some more permissive than others, some only checking for @.
2018-02-20 12:30:13 +01:00
..
2018-02-14 13:43:39 +01:00
2017-09-26 11:47:00 +02:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2017-09-26 11:47:00 +02:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2017-10-26 17:31:25 +02:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2017-09-24 01:44:27 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-09-26 11:47:00 +02:00
2018-01-01 02:40:01 +01:00
2017-12-01 02:53:01 +01:00
2017-12-13 17:22:51 +01:00
2018-01-11 10:46:31 +01:00
2017-12-20 10:57:42 +01:00
2017-12-13 17:22:51 +01:00
2017-09-26 11:47:00 +02:00
2017-09-26 11:47:00 +02:00
2017-09-26 11:47:00 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2018-02-01 02:40:21 +01:00
2017-09-26 11:47:00 +02:00
2017-09-24 01:44:27 +02:00
2017-12-19 16:48:35 +01:00
2017-09-26 11:47:00 +02:00
2018-02-01 02:40:21 +01:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-10-27 14:57:33 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-10-27 13:54:31 +02:00
2017-09-24 01:44:27 +02:00
2017-12-01 02:53:01 +01:00
2017-09-24 01:44:27 +02:00
2017-10-27 13:54:31 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-10-27 13:54:31 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-10-27 13:54:31 +02:00
2018-02-01 02:40:21 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 19:15:02 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-15 10:38:03 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-20 12:30:13 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-20 12:30:13 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2017-12-01 02:53:01 +01:00
2018-02-19 09:47:28 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2017-09-24 01:44:27 +02:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2017-12-01 02:53:01 +01:00
2018-02-01 02:40:21 +01:00
2017-12-01 02:53:01 +01:00
2018-02-14 17:20:55 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2017-09-26 11:47:00 +02:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-01 02:40:21 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00