You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks for maintaining this nice library 👍
I'm using it on my Symfony app in strict mode (which uses NoRFCWarningsValidation).
I noticed from time to time my postfix service on prod has some issues with email addresses that passed the validation. In those cases I have trailing non-breaking spaces.
I'm not that familiar with all the RFC specs out there around email address syntax 😋
Hi @dmaicher
I'll look into it, seem to have to do with how mb_chr(0xA0) is interpreted, since a "normal" space is being handled correctly (returns false, per your example).
Meanwhile, a simple sanitation using trim should do the trick to remove those cases.
First of all thanks for maintaining this nice library 👍
I'm using it on my Symfony app in
strict
mode (which usesNoRFCWarningsValidation
).I noticed from time to time my postfix service on prod has some issues with email addresses that passed the validation. In those cases I have trailing non-breaking spaces.
I'm not that familiar with all the RFC specs out there around email address syntax 😋
So I'm wondering: should those be valid? 🤔
Reproducer:
The text was updated successfully, but these errors were encountered: