Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Zend_Validate_Hostname doesn't handle IDN for .UA #16

Closed
zfbot opened this issue Apr 5, 2013 · 1 comment
Closed

Zend_Validate_Hostname doesn't handle IDN for .UA #16

zfbot opened this issue Apr 5, 2013 · 1 comment

Comments

@zfbot
Copy link

zfbot commented Apr 5, 2013

Jira Information

Original Issue:ZF-12413
Issue Type:Bug
Reporter:Martin Fuxa
Created:09/10/12
Assignee:Thomas Weidner
Components:Zend_Validate

Description

From 2012-06-01 UA have IDN support, see
https://hostmaster.ua/policy/?com.ua

For example
xn--80aaac0cakkgdth0g.com.ua
is valid + registered domain, you can check it by "Search domain name" at hostmaster.ua website.

But actual bugy result is
$zvh = new Zend_Validate_Hostname;
if (!$zvh->isValid('самобраночкка.com.ua')) {
foreach ($zvh->getMessages() as $m) {
echo $m,PHP_EOL;
}
}

'самобраночкка.com.ua' appears to be a DNS hostname but cannot match against hostname schema for TLD 'ua'
'самобраночкка.com.ua' does not appear to be a valid local network name

@zfbot
Copy link
Author

zfbot commented Apr 5, 2013

This issue was ported from the ZF2 Jira Issue Tracker at
http://framework.zend.com/issues/browse/ZF-12413

Known GitHub users mentioned in the original message or comment:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant