ZF-8559: Zend_Validator_Hostname domain parts

Issue Type: Bug Created: 2009-12-16T14:31:39.000+0000 Last Updated: 2009-12-17T11:48:50.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Yuriy Kolodovskyy (lexx) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


For example,

$validator = new Zend_Validate_Hostname(); Zend_Debug::dump($validator->isValid('fgfg.some here with white'));

Result is 'true'!

When debug with trace Zend_Validate_Hostname::isValid method I see what only one part of hostname check at 'foreach ($domainParts as $domainPart) {' (line 479) All other skiped by break at line 517

So, all hostname with any chars at non first part ant tld has true result.

Maybe my wrong?

File info: * @version $Id: Hostname.php 17141 2009-07-26 12:49:17Z thomas $


Posted by Thomas Weidner (thomas) on 2009-12-17T11:48:36.000+0000

Not reproducable within trunk

Have you found an issue?

See the Overview section for more details.


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

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