-
Notifications
You must be signed in to change notification settings - Fork 159
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
url(public = True)
is broken
#309
Comments
Hi @haavardw, can you please provide a couple of use cases to consider? |
We have a system where you can submit a URL and get the web-site analyzed and scanned for phishing, malware etc. The argument |
This article from Snyk is also apparently SEO optimized to appear for search results regarding python and URL validation: https://snyk.io/blog/secure-python-url-validation/ The code presented is essentially flawed as validation = validators.url("https://10.0.0.1", public=True)
if validation:
print("URL is valid")
else:
print("URL is invalid") I read the source, and a comment in the source code suggests that I came to GitHub to search for a commit or perhaps issues that describe when/why Just mentioning this in case others find themselves here for the same reasons. @haavardw you may be able to limit protocols or first check the url uses |
precedes #325 |
The `public` parameter looks to be broken ¹. ¹ python-validators/validators#309
Version 0.10.3 added the
public
argument tovalidators.url
which would return 'False' for obvious local urls. This was very useful, but the functionality seems to be broken, maybe since c43826c . Even the tests are removed. Nothing is mentioned in the changelog, and I find no obvious workarounds...The text was updated successfully, but these errors were encountered: