Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URI validator accepts incorrect hostnames #11

Open
weierophinney opened this issue Dec 31, 2019 · 0 comments
Open

URI validator accepts incorrect hostnames #11

weierophinney opened this issue Dec 31, 2019 · 0 comments

Comments

@weierophinney
Copy link
Member

$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?


Originally posted by @h8every1 at zendframework/zend-validator#206

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

No branches or pull requests

1 participant