Wednesday, June 27, 2018

Re: Invalid URLs passing validation by URLValidator



On Friday, 22 June 2018 20:53:54 UTC+10, Jason wrote:
Interesting find.. the only time I've used that kind of URL convention is by connecting to redis with the python redis library.  It also fits db url connection strings too.

What's the actual use case for the URL schema?

The use case is that I've extracted URLs like that from spam emails. (I work for an agency that regulates spam.) Clearly the software creating the emails had a bug that resulted in the invalid URLs, but nevertheless, I don't want the invalid URLs to break my system, so I check they're valid before further processing.

 

You could also report this to the https://groups.google.com/forum/#!forum/django-developers group which is the core framework dev group, or report it as a bug on the django bug tracker.

Reported as a bug (with a fix): https://code.djangoproject.com/ticket/29528

Cheers,

Tim Bell

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3da47adf-e80f-4ddf-9335-c275b0724ed2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment