You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the assertion made by Assertion::email() does not allow Unicode characters. Since 2012, Unicode characters above U+007F encoded as UTF-8 are allowed in the local part.
PHP 7.1 added the flag FILTER_FLAG_EMAIL_UNICODE that can be used with FILTER_VALIDATE_EMAIL to accept those Unicode characters.
Hi,
I noticed that the assertion made by
Assertion::email()
does not allow Unicode characters. Since 2012, Unicode characters aboveU+007F
encoded as UTF-8 are allowed in the local part.PHP 7.1 added the flag
FILTER_FLAG_EMAIL_UNICODE
that can be used withFILTER_VALIDATE_EMAIL
to accept those Unicode characters.A simple test with two emails allows to check the difference:
[email protected]
föö@bar.com
I can submit a PR to add the flag with an extra argument but maybe you would prefer to add a new method so I prefer to discuss it here before.
Regards
The text was updated successfully, but these errors were encountered: