Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: 0.9.0
-
Fix Version/s: 1.0.0 RC2
-
Component/s: Zend_Validate
-
Labels:None
Description
I can't get IDN hostname validation working at all as of r4097.
$tld = 'höhö.ch'; $hostnameValidator = new Zend_Validate_Hostname(); $hostnameValidator->setValidateIdn(true); // optional as IDN validation should be enabled by default if (!$hostnameValidator->isValid($tld)) { print_r($hostnameValidator->getMessages()); }
prints:
Array
(
[0] => 'höhö.ch' appears to be a DNS hostname but cannot match against hostname schema for TLD 'ch'
[1] => 'höhö.ch' does not appear to be a valid local network name
[2] => 'höhö.ch' appears to be a local network name but but local network names are not allowed
)
while höhö.ch should be a valid IDN hostname.
Attachments
Issue Links
| This issue is related to: | ||||
| ZF-881 | Zend_Validate_Hostname - UTF-8 hostnames valid? |
|
|
|
Assign to Darby.