Issue Type: Bug Created: 2012-01-17T07:04:03.000+0000 Last Updated: 2012-08-17T09:22:06.000+0000 Status: Open Fix version(s): Reporter: Ivan (elgris) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate
Related issues: - ZF-12035
Zend_Validate_Hostname fails on domain containing dashes. E.g. valid cyrillic domain like "вася-пупкин.рф" after processing with 'idn_to_ascii' function becomes invalid for Zend_Validate_Hostname while "васяпупкин.рф" is still valid. The problem can be in th way Zend_Validate_Hostname processes dashes at the beginning of ascii-represented domains. Thus, idn_to_ascii("васяпупкин.рф") results in 'xn--80adthqjaot2j.xn--p1ai' string with two dashes on positions 3 and 4. idn_to_ascii("вася-пупкин.рф") results in 'xn----7sbf0ajtlapw3k.xn--p1ai' string with FOUR dashes on positions 3-6. So, condition in Zend_Validate_Hostname at pos.600 fails ((strpos($domainPart, '-') === 0)) and domain becomes invalid.
Posted by Egor Chernodarov (eg321) on 2012-08-17T08:03:48.000+0000
Seems it's duplicate of http://framework.zend.com/issues/browse/ZF-12035. Please vote it.
Have you found an issue?
See the Overview section for more details.