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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user