Fixed #28142 -- Fixed is_safe_url() crash on invalid IPv6 URLs.

This commit is contained in:
UmanShahzad 2017-04-29 19:10:43 -04:00 committed by Tim Graham
parent 3db84b5526
commit 856072dd4a
3 changed files with 9 additions and 1 deletions

View file

@ -100,6 +100,8 @@ class TestUtilsHttp(unittest.TestCase):
'http:999999999',
'ftp:9999999999',
'\n',
'http://[2001:cdba:0000:0000:0000:0000:3257:9652/',
'http://2001:cdba:0000:0000:0000:0000:3257:9652]/',
)
for bad_url in bad_urls:
with ignore_warnings(category=RemovedInDjango21Warning):