User Details
User Details
- User Since
- May 17 2017, 2:12 AM (396 w, 2 d)
- Availability
- Available
Aug 1 2017
Aug 1 2017
ofbeaton awarded T12718: Local email validation with apostrophe a Like token.
May 17 2017
May 17 2017
ernie updated the task description for T12718: Local email validation with apostrophe.
ernie added a comment to T12718: Local email validation with apostrophe.
Okay, but just to point out: having an apostrophe in one's name is not that exotic...
- O'Brien
- O'Connor
- D'Angelo
- O'Dowd
- O'Malley
- O'Hara
- D'Arcy
- D'Addario
So someone could quite conceivably have Chris.O'Dowd@BBC.co.uk or something like that.
Anyway, if anyone's looking for how to get around this in the future, an alternate solution to changing PhabricatorUserEmail.php would be to go into the DB phabricator_user, in table user_email, and change it directly in there, thus bypassing validation.
If you did want to change the code, though, look into http://php.net/manual/en/filter.examples.validation.php - FILTER_VALIDATE_EMAIL and FILTER_SANITIZE_EMAIL.
ernie updated the task description for T12718: Local email validation with apostrophe.