If my patch is used I think it would be nice to correct the variable $validor 
I added to $validator which sounds more english ;)

Le vendredi 16 février 2007 11:31, Simon R Jones a écrit :
> hands up - that's my fault
>
> I changed the default functionality of Zend_Validate_Hostname to only check
> for DNS hostnames since I felt that was a more common real-world scenario.
> Sorry if I've broken existing functionality, I should have checked across
> the codebase
>
> I can either change that default functionality back to ALLOW_ALL or can
> someone implement Olivier's fix please?
>
> I notice Zend_Filter also has a reference to Zend_Validate_Hostname
>
>     public static function isHostname($value, $allow =
> self::HOST_ALLOW_ALL) {
>         require_once 'Zend/Validate/Hostname.php';
>         $validator = new Zend_Validate_Hostname($allow);
>         return $validator->isValid($value);
>     }
>
> best wishes,
> Si

-- 
Olivier Sirven

Elma Ingénierie Informatique
3, rue d'Uzès
F-75002 - Paris - France
http://www.elma.fr
Tel: +33-1-44882744
Fax: +33-1-44882747
Email: [EMAIL PROTECTED]

Reply via email to