{{{
#!python
>>> from django.core.validators import URLValidator
>>> validator = URLValidator()
>>> validator('http://user:pass...@1.2.3.4:80/')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/danilo/.virtualenvs/test/lib/python2.7/site-
packages/django/core/validators.py", line 66, in __call__
super(URLValidator, self).__call__(url)
File "/home/danilo/.virtualenvs/test/lib/python2.7/site-
packages/django/core/validators.py", line 39, in __call__
raise ValidationError(self.message, code=self.code)
django.core.exceptions.ValidationError
}}}
Maybe we need to go over the RegEx used? This could be used for testing:
http://mathiasbynens.be/demo/url-regex
--
Ticket URL: <https://code.djangoproject.com/ticket/21532>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0
Comment:
This appears to be a duplicate of #20003.
--
Ticket URL: <https://code.djangoproject.com/ticket/21532#comment:1>