mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #28142 -- Fixed is_safe_url() crash on invalid IPv6 URLs.
This commit is contained in:
parent
3db84b5526
commit
856072dd4a
3 changed files with 9 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue