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 ccTLD .рф #19

Closed
zfbot opened this issue Apr 5, 2013 · 5 comments
Closed

Zend_Validate_Hostname doesn't handle ccTLD .рф #19

zfbot opened this issue Apr 5, 2013 · 5 comments

Comments

@zfbot
Copy link

zfbot commented Apr 5, 2013

Jira Information

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

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

@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-12425

Known GitHub users mentioned in the original message or comment:

@froschdesign
Copy link
Member

@mhujer
Can you look at this?

@mhujer
Copy link
Contributor

mhujer commented Nov 13, 2014

OK, next week or the week after

@froschdesign
Copy link
Member

@mhujer
The Hostname Hero strikes back! 😉

Thanks!

@mhujer
Copy link
Contributor

mhujer commented Nov 24, 2014

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.
Projects
None yet
Development

No branches or pull requests

3 participants