-
Notifications
You must be signed in to change notification settings - Fork 12
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
Valid but invalid url #59
Comments
Returning
|
I think you misread the issue. The issue is not with the test.com because you can replace that with example.com or whatever domain but with the "]" at the end. If you add one or multiple of them at the end like this the url stays valid: But maybe it is a valid char for a domain name, but I thought it was not allowed as part of the domain name. |
Whoops! Sorry about that, you're absolutely right. I misread the issue and failed to catch the closing square-bracket on the end of the URL. Sorry about that. I'm reopening and will take a look. |
No problem, glad that I was not mistaken about the character :) |
And yep - this is definitely a bug. The square-bracket is an unsafe character that is not supported in a URL, and it seems that the code is letting it slip through. I'll fix the bug in the next release (I probably won't have a chance to get to it until this weekend, though). |
I was wondering when the new release with the fix for this issue will be released? |
Hi,
I am using your library and I think I found a bug with an url I found on the internet.
To reproduce it I do this:
from validator_collection import checkers print(checkers.is_url("http://www.test.com]"))
And then it says True, but I think it should return False
Kind regrards,
Tijs
The text was updated successfully, but these errors were encountered: