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

The isURL validator does not correctly validate http://www. #428

Closed
GEMI opened this issue Aug 27, 2015 · 2 comments
Closed

The isURL validator does not correctly validate http://www. #428

GEMI opened this issue Aug 27, 2015 · 2 comments

Comments

@GEMI
Copy link

GEMI commented Aug 27, 2015

If I enter "http://www.uk" the validator says that it's a valid URL, however we can clearly see that it's not. The problem is that the trailing www after the protocol is not recognized as 'www' and is treated like the beginning of the url which can be something like 'abc.uk' or similar.

@chriso
Copy link
Collaborator

chriso commented Aug 27, 2015

That is a valid URL. Checking whether the TLD allows registration of that domain, or checking whether the page actually exists, is outside the scope of the library.

@chriso chriso closed this as completed Aug 27, 2015
@GEMI
Copy link
Author

GEMI commented Aug 27, 2015

Ok I didn't know that. Anyway for real life usage it is an invalid URL...

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

2 participants