From 03d0c05fdfd3de5f36bf54470ed03018295497c7 Mon Sep 17 00:00:00 2001 From: UmanShahzad Date: Sat, 29 Apr 2017 19:10:43 -0400 Subject: [1.11.x] Fixed #28142 -- Fixed is_safe_url() crash on invalid IPv6 URLs. Backport of 856072dd4a3e479aa09b0ab6b498ff599ca2a809 from master --- tests/utils_tests/test_http.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/utils_tests') 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): -- cgit v1.3