ZF-5760: Lithuanian top-level domain allowed utf-8 characters in Zend_Validate_Hostname

Description


class Zend_Validate_Hostname_Lt implements Zend_Validate_Hostname_Interface
{

    /**
     * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain
     *
     * @see http://domreg.lt/public?pg=8A7FB6&sp=idn Lithuania (.LT)
     * @return string
     */
    static function getCharacters()
    {
        return  '\x{0105}\x{0119}\x{012F}\x{0173}' .
                '\x{010D}\x{0117}\x{0161}\x{016B}\x{017E}';
    }

}

Comments

New feature implemented with the last rework of Zend_Validate_Hostname.