Issues

ZF-11751: Zend_Validate_Hostname preg_match in line 583 give error (.pl.eu)

Issue Type: Bug Created: 2011-09-19T14:26:29.000+0000 Last Updated: 2011-10-01T08:34:32.000+0000 Status: Resolved Fix version(s): - Next Major Release ()

Reporter: Samuel (michizend) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

  • validating

Related issues: Attachments:

Description

When i try to validate this email: dorotabaran@.pl.eu the validator tells me that it is invalid. That ok.

But it uses in this case an regular expression $_validIdns[EU][6]

/^[\x{002d}0-9a-zἀ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷῂῃῄῆῇῐ-ΐῖῗῠ-ῧῲῳῴῶῷ]{1,63}$/iu

thisone fails with an error that is masked with @, but written into our error-log.

I tried this regular expression and get the error:

preg_match(): Compilation failed: range out of order in character class at offset 70

Comments

Posted by Raphael de Almeida (jaguarnet7) on 2011-09-27T01:08:53.000+0000

For validate a email do use class Zend_Validate_EmailAddress. Your example is really a invalid email dorotabaran@.pl.eu

The correct could be dorotabaran@pl.eu

Posted by Thomas Weidner (thomas) on 2011-09-27T04:19:58.000+0000

@Raphael: Your comment has nothing to do with the described error

Posted by Thomas Weidner (thomas) on 2011-10-01T08:34:32.000+0000

Fixed in ZF2 with GH-447

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts