zendframework / zend-validator

Validator component from Zend Framework
BSD 3-Clause "New" or "Revised" License
181 stars 136 forks source link

Accented characters in emails are failing validation #155

Open amcsi opened 7 years ago

amcsi commented 7 years ago

This example email used to validate fine until ZF2 2.9.0: frédéric.mercier@south.com

As far as I can see, it's supposed to be valid according to RFC 6532 http://stackoverflow.com/a/760151/1381550 In theory it should not fail validation, and what was brought in ZF2 2.9.0 is a breaking change.

Was this on purpose?

Xerkus commented 7 years ago

Validator does support internationalized local part, previously it was passing due to IDNA false positive bug.

amcsi commented 7 years ago

@Xerkus but if the validator yields false for them, it means it clearly doesn't support them.

Xerkus commented 7 years ago

sorry, that was a typo. "does not"*

internationalization brings in support for utf characters where were none, which complicates things a lot

I will try to add proper support for them, will need to do research on the topic

-- Aleksei Khudiakov Developer at Roave LLC https://roave.com

On Apr 6, 2017 18:39, "Attila Szeremi" notifications@github.com wrote:

@Xerkus https://github.com/Xerkus but if the validator yields false for them, it means it clearly doesn't support them.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zendframework/zend-validator/issues/155#issuecomment-292107386, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsTUkZlB4vwRuV2C1igcAY2Ht7WCNh6ks5rtKS6gaJpZM4MkBba .

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-validator; a new issue has been opened at https://github.com/laminas/laminas-validator/issues/21.