-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Headers::fromString
strips local part quotes which turns it into invalid dot-atom format
#250
Labels
Bug
Something isn't working
Comments
What is the full address you are trying to validate? Space is not permitted in local part unless local part is double quoted. |
This issue is related to laminas-mail/src/Header/AbstractAddressList.php Lines 110 to 120 in 030cb35
I will move this issue accordingly. |
boesing
changed the title
validateLocalPart (src/EmailAddress.php) is not working with Whitespaces
Aug 24, 2023
Headers::fromString
strips local part quotes which turns it into invalid dot-atom format
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Version 2.34
Summary
When passing a valid E-Mail Headers part to the
Headers#fromString
method, an exception is thrown due to the fact thatAbstractAddressList#fromString
is stripping quotes fromFrom
E-Mail local-part.Current behavior
Reproduction
By removing the quotes from the E-Mail localpart, the local part becomes invalid from a validation PoV.
Expected behavior
The local part of an address is not modified when passing headers via
Headers::fromString
.The text was updated successfully, but these errors were encountered: