1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

[1.11.x] Fixed #28142 -- Fixed is_safe_url() crash on invalid IPv6 URLs.

Backport of 856072dd4a from master
This commit is contained in:
UmanShahzad
2017-04-29 19:10:43 -04:00
committed by Tim Graham
parent 4841fafb44
commit 03d0c05fdf
3 changed files with 9 additions and 1 deletions

View File

@@ -109,6 +109,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):