summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_http.py
diff options
context:
space:
mode:
authorUmanShahzad <emidanrko564@hotmail.com>2017-04-29 19:10:43 -0400
committerTim Graham <timograham@gmail.com>2017-05-10 09:43:12 -0400
commit03d0c05fdfd3de5f36bf54470ed03018295497c7 (patch)
tree2e4b721642ba9d96d7817fd1f6234a94da778785 /tests/utils_tests/test_http.py
parent4841fafb4421a215e854f68daebde2d4cfccfc3f (diff)
[1.11.x] Fixed #28142 -- Fixed is_safe_url() crash on invalid IPv6 URLs.
Backport of 856072dd4a3e479aa09b0ab6b498ff599ca2a809 from master
Diffstat (limited to 'tests/utils_tests/test_http.py')
-rw-r--r--tests/utils_tests/test_http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py
index f6f711c72f..b435e33e44 100644
--- a/tests/utils_tests/test_http.py
+++ b/tests/utils_tests/test_http.py
@@ -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):