Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Validator] EmailValidator cannot extract hostname if email contains multiple @ symbols #18146

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

Closed
natechicago opened this issue Mar 13, 2016 · 0 comments

Comments

@natechicago
Copy link
Contributor

Consider the following email: "hello@world"@google.com. Per RFC-5322, this is definitely a valid email address. It also passes Symfony's default email validation.

However, when the validator attempts to parse the hostname (for the MX & hostname checks), it slices up the email address based on the location of the first @ symbol rather than the last one.

nicolas-grekas added a commit that referenced this issue Mar 17, 2016
…l contains multiple @ symbols (natechicago)

This PR was squashed before being merged into the 2.3 branch (closes #18147).

Discussion
----------

[Validator] EmailValidator cannot extract hostname if email contains multiple @ symbols

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18146
| License       | MIT
| Doc PR        | n/a

Commits
-------

c551bd1 [Validator] EmailValidator cannot extract hostname if email contains multiple @ symbols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants