This repository has been archived by the owner on May 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 800
Zend_Validate_Hostname doesn't handle ccTLD .рф #19
Labels
Comments
This issue was ported from the ZF2 Jira Issue Tracker at Known GitHub users mentioned in the original message or comment: |
@mhujer |
OK, next week or the week after |
@mhujer Thanks! |
I tried to fix this, but it looks like that Zend_Validate_Hostname can't validate even Chinese IDNs which should be supported (there is a code for them, but no tests) and I couldn't write a passing test for Chinese domain .中国 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Jira Information
Description
This is valid TLD and domain
http://en.wikipedia.org/wiki/.%D1%80%D1%84
but Zend_Validate_Hostname doesn't handle it well.
$zvh = new Zend_Validate_Hostname;
if (!$zvh->isValid('президент.рф')) {
foreach ($zvh->getMessages() as $m) { echo $m,PHP_EOL; }
}
'президент.рф' appears to be a DNS hostname but cannot match TLD against known list
'президент.рф' does not appear to be a valid local network name
The text was updated successfully, but these errors were encountered: