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
Do not accept @ in email address local part unquoted #44094
Comments
Can you please check again? As far as I know, we haven't released a version 6.5 and we currently have no plans to ever release a version 6.5 either. 🙃 |
Yes thanks, its 5.3, I made the edit :) |
Could you please share an example of an email string that match with your issue? |
|
Hey, thanks for your report! |
@fabpot Do you remember why |
It's been done by @derrabus as part of supporting version 3 of the email validation lib: https://github.com/symfony/symfony/pull/39685/files#diff-f0d9919249d4352374874b02faa5eba0be74d75a2aee76b37b820e1453bfb3b7R55 |
The linked PR also has some discussion about email validation. |
Hey, thanks for your report! |
Hello? This issue is about to be closed if nobody replies. |
Hey, I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen! |
Symfony version(s) affected
5.3
Description
As per RFC5322, email address local part cannot contain any special character unless quoted but Mailer accepts email addresses containing
@
.How to reproduce
If
$to
local-part is unquoted and contains@
an email address validation error should be raised.Possible Solution
The email address validation should use RFCValidation as default as it fails as expected when local part contains
@
unquoted.Note: The exception message should be updated in consequence.
Additional Context
No response
The text was updated successfully, but these errors were encountered: