ZF-5859: Zend_Validate_Hostname: ç in .com domains

Issue Type: Improvement Created: 2009-02-23T01:19:22.000+0000 Last Updated: 2009-03-29T14:12:35.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Sebastian Kaspari (skaspari) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


Zend_Validate_Hostname seems to validate Domains with ç wrong. ç should be an allowed character. This also works fine for .de Domains but fails with .com Domains.

Example: $v = new Zend_Validate_Hostname(); $v->isValid('testç') // false, should be true $v->isValid('testç') // true


Posted by Sebastian Kaspari (skaspari) on 2009-03-02T03:05:42.000+0000

There's no list of UTF-8 characters allowed in .com domains like there's one for .de domains.

The Quickfix for the ç would be to create a file /Zend/Validate/Hostname/Com.php:

<pre class="literal"><?php

require_once 'Zend/Validate/Hostname/Interface.php';

 * Patch for .com IDN-Domains
 * @author SK
class Zend_Validate_Hostname_Com implements Zend_Validate_Hostname_Interface
     * Add ç to the list of allowed characters
     * @return string
    static function getCharacters()
        return  '\x{00E7}';

Posted by Sebastian Kaspari (skaspari) on 2009-03-02T03:33:29.000+0000

There's a complete list of allowed character in .com domains at…

Also this may not be authoritative:

à á â ã ä å ā ă ą æ ç ć ĉ ċ č ď đ è é ê ë ē ĕ ė ę ě ŋ ð ĝ ğ ġ ģ ĥ ħ ì í î ï ĩ ī ĭ į ı ĵ ķ ĸ ĺ ļ ľ ł ñ ń ņ ň ò ó ô õ ö ø ō ŏ ő œ ŕ ŗ ř ś ŝ ş š ţ ť ŧ þ ù ú û ü ũ ū ŭ ů ű ų ŵ ý ÿ ŷ ź ż ž

Posted by Thomas Weidner (thomas) on 2009-03-29T14:12:34.000+0000

New feature implemented with r14532

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.