Giter Club home page Giter Club logo

Comments (5)

weierophinney avatar weierophinney commented on August 19, 2024

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


Originally posted by @Xerkus at zendframework/zend-validator#155 (comment)

from laminas-validator.

weierophinney avatar weierophinney commented on August 19, 2024

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


Originally posted by @amcsi at zendframework/zend-validator#155 (comment)

from laminas-validator.

weierophinney avatar weierophinney commented on August 19, 2024

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" [email protected] 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
zendframework/zend-validator#155 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAsTUkZlB4vwRuV2C1igcAY2Ht7WCNh6ks5rtKS6gaJpZM4MkBba
.


Originally posted by @Xerkus at zendframework/zend-validator#155 (comment)

from laminas-validator.

vinnyusestrict avatar vinnyusestrict commented on August 19, 2024

I'm running into the same issue. A client of mine is in Israel and her messages are failing with the bad internationalized domain error:

Fatal error: Uncaught Laminas\Mail\Exception\InvalidArgumentException: 'mhmc.co.xn--il>-5qe' is not a valid hostname for the email address in /path/to/includes/vendor/laminas/laminas-mail/src/Address.php

Are there plans for fixing this?

from laminas-validator.

vinnyusestrict avatar vinnyusestrict commented on August 19, 2024

I added some debugging and found that the issue is the preg_match on line 495 of laminas-validator/src/EmailAddress.php.

The value matched against has a Hebrew character after the closing >:

ג לא <[email protected]

Replacing the regex with /^(?:.*<)?(.+)@([^@]+?)(?:>|$)/ fixes the problem. However, the original regular expression leads me to believe that it was expecting just what is inside the < and >, so perhaps a better fix would be in the header parser that pulls the address in the first place.

I hope this helps.

from laminas-validator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.