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

Hostname validation not correct when not checking TLD #255

Closed
SiebeVE opened this issue Jan 23, 2019 · 0 comments
Closed

Hostname validation not correct when not checking TLD #255

SiebeVE opened this issue Jan 23, 2019 · 0 comments

Comments

@SiebeVE
Copy link

SiebeVE commented Jan 23, 2019

I have a use case were I check a hostname but don't want to check the tld,

$validator = new \Zend\Validator\Hostname([
    'useTldCheck' => false,
    'allow' => $allow,
 ]);
$validator->isValid('unvalid_domain.be'); // true

This results in true, but this should be false.

weierophinney added a commit that referenced this issue Jan 29, 2019
Fix fault subdomain when not checking TLD issue #255
weierophinney added a commit that referenced this issue Jan 29, 2019
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

1 participant