zendframework / zend-validator

Validator component from Zend Framework
BSD 3-Clause "New" or "Revised" License
181 stars 136 forks source link

URI validator accepts incorrect hostnames #206

Open untone-survive opened 6 years ago

untone-survive commented 6 years ago
$uri        = "http://+_-_=+notasite,";
$validator  = new \Zend\Validator\Uri(['allowRelative' => false, 'allowAbsolute' => true]);
$isCorrectUri = $validator->isValid($uri);
var_dump($isCorrectUri); // bool(true)

Is this the way it should be?

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-validator; a new issue has been opened at https://github.com/laminas/laminas-validator/issues/11.