ZF-12130: Zend_Validate_Hostname doesn't handle IDN for .РФ

Description

Zend_Validate_Hostname doesn't handle IDN for .РФ, for example почта.рф

    $validator = new Zend_Validate();
    $validator->addValidator(new Zend_Validate_Hostname());

    if($validator->isValid('почта.рф')){
        echo "OK";
    }else{
        print_r($validator->getMessages());
    }

Array ( [hostnameUnknownTld] => 'почта.рф' appears to be a DNS hostname but cannot match TLD against known list [hostnameInvalidLocalName] => 'почта.рф' does not appear to be a valid local network name )

Comments

No comments to display