-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
HTML5 Email validation is incorrect #49076
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
Comments
Do you have a use case for accepting something@example for production applications? |
#47872 made this possible in 6.2, right? |
Using HTML5 email validation I would assume that if an email can pass basic HTML5 form validadtion: |
Upgrading |
Symfony version(s) affected
Symfony Validator 6.0.6
Description
HTML5 validation within the symfony validator currently uses the following pattern for HTML5 email validation:
This is not actually valid as emails such as
name@example
are not accepted, whereas they are accepted using actual HTML5 form validation.How to reproduce
The problematic code can be reproduced as:
For reasoning, please see: https://stackoverflow.com/a/20573649
Possible Solution
The top level domain delimiter (dot) should be optional.
Additional Context
No response
The text was updated successfully, but these errors were encountered: