From 856072dd4a3e479aa09b0ab6b498ff599ca2a809 Mon Sep 17 00:00:00 2001 From: UmanShahzad Date: Sat, 29 Apr 2017 19:10:43 -0400 Subject: Fixed #28142 -- Fixed is_safe_url() crash on invalid IPv6 URLs. --- tests/utils_tests/test_http.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py index 80e795d3af..e3b9425184 100644 --- a/tests/utils_tests/test_http.py +++ b/tests/utils_tests/test_http.py @@ -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): -- cgit v1.3