-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.3.2
-
None
-
MOODLE_23_STABLE
Hi,
I think that I have found an error in the validate_email() function.
The regular expression afford us to enter emails like this: email@hotmail..
this is because the function checks that the domain part of the function fits this:
[-!#$%&\'*+
/0-9=?A-Z^_`a-z
./0-9=?A-Z^_`a-z{|}
~]+$#
So, this expression says that we have to write some character(s), then a dot, and finally some character. But this last part allow us to write a dot, because it inside the []
Please, can you tell me if this is really a bug. And if so, are someone working on it?
Thanks in advance
Regards.
Lucas Herraiz
- duplicates
-
MDL-21475 regular expression for email validation
-
- Closed
-