Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

URI validator accepts incorrect hostnames #206

Open
untone-survive opened this issue Nov 27, 2017 · 1 comment
Open

URI validator accepts incorrect hostnames #206

untone-survive opened this issue Nov 27, 2017 · 1 comment

Comments

@untone-survive
Copy link

$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
Copy link
Member

This repository has been closed and moved to laminas/laminas-validator; a new issue has been opened at laminas/laminas-validator#11.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants