Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support email addresses with Unicode charathers #159

Open
ohjimijimijimi opened this issue May 22, 2024 · 0 comments · May be fixed by #160
Open

Support email addresses with Unicode charathers #159

ohjimijimijimi opened this issue May 22, 2024 · 0 comments · May be fixed by #160

Comments

@ohjimijimijimi
Copy link

ohjimijimijimi commented May 22, 2024

Context

The email format constraint currently uses the FILTER_VALIDATE_EMAIL to validate email addresses.

Email addresses with unicode characters will not pass validation even if they are consider valid from as international email addresses.

This problem could be improved by adding FILTER_FLAG_EMAIL_UNICODE in

return filter_var($data, FILTER_VALIDATE_EMAIL) ? null : 'Invalid email';

filter_var($data, FILTER_VALIDATE_EMAIL, FILTER_FLAG_EMAIL_UNICODE) ? null : 'Invalid email';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant