Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend\Validator\Hostname doesn't handle IDN for .il domain names #5894

Closed
ghost opened this issue Mar 2, 2014 · 1 comment
Closed

Zend\Validator\Hostname doesn't handle IDN for .il domain names #5894

ghost opened this issue Mar 2, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 2, 2014

Hostname validates .il domain names, but it doesn't support IDN.
I tested with domain name xn----zhcbgfhe2aacg8fb5i.org.il (from https://www.isoc.org.il/domains/idn_eng/idn_faq.html)

@moderndeveloperllc
Copy link
Contributor

It would appear that no .il domains, in punycode nor hebrew, are validating. The validation for that TLD isn't in the $validIdns array. It does look like the requisite IANA document is available. Perhaps I should try and make a fix and actually contribute. In the meantime, you will have to useIdnCheck(false) on the validator if the TLD is .il.

weierophinney added a commit that referenced this issue Mar 5, 2014
gianarb pushed a commit to zendframework/zend-validator that referenced this issue May 15, 2015
…ebrew and Latin domain names; update validTLDs from IANA website; Add a few more Cyrillic IDN checking strings from IANA website; Use UTF8 string wrapper for strlen calls; Clean up TLD checking (if we are using getTldCheck() == true we don't need any further checking of the TLD validity); Add new tests for some of the new UTF-8 TLDs
weierophinney added a commit to zendframework/zend-validator that referenced this issue May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this issue May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant