ZF-1921: Zend_Validate_Hostname does not accept umlauts for com-TLD

Issue Type: Improvement Created: 2007-09-08T11:54:07.000+0000 Last Updated: 2009-03-29T14:13:49.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Carsten Möhrke (donnerchen) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


Zend_Validate_Hostname does not accept german umlauts for .com-TLDs.

Reproduce code:

<pre class="literal">

$validator = new Zend_Validate_Hostname(Zend_Validate_Hostname::ALLOW_DNS,true);

$host = utf8_encode('<a href="">www.mö</a>');
if ($validator->isValid($host))
    echo "PASS!";
    echo "FAIL!<br></br>";
    foreach ($validator->getMessages() as $message) 
        echo "$message<br></br>";  


<pre class="literal">
'<a href="">www.mö</a>' appears to be a DNS hostname but cannot match against hostname schema for TLD 'com'
'<a href="">www.mö</a>' does not appear to be a valid local network name
'<a href="">www.mö</a>' appears to be a local network name but but local network names are not allowed

Oh, by the way, www.mö is a valid hostname and connected ;-)


Posted by Thomas Weidner (thomas) on 2007-09-08T12:04:51.000+0000

Assigned to Darby

Posted by Simon R Jones (studio24) on 2007-09-17T12:03:46.000+0000

I am afraid .com domains are not currently set up to accept international characters. The only TLDs currently set up are: * at * ch * li * de * fi * hu * no * se

I will look into the characters accepted for .com's and will see if I can implement this.

Darby, how do I get an unordered list

  • onto the documentation page at:…The list of current IDN supported domains needs to be more obvious than is currently the case.

Posted by Darby Felton (darby) on 2007-09-17T12:19:08.000+0000

Hi Simon; try the DocBook tag. You can search in your framework working copy for other documentation files having this tag for examples.

Posted by Simon R Jones (studio24) on 2007-09-19T11:11:10.000+0000

So far I cannot find a list of characters accepted for an IDN .com domain so I won't be able to implement this for the next ZF release (v1.0.2)

I'll carry on looking, but if anyone has any suggestions please do post here :-)

Posted by Simon R Jones (studio24) on 2007-09-20T11:37:43.000+0000

Documentation updated in revision 6423, this issue will be left open since I need to look into .com IDN support

Posted by Thomas Weidner (thomas) on 2009-03-29T14:13:48.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.