mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #33367 -- Fixed URLValidator crash in some edge cases.
This commit is contained in:
committed by
Mariusz Felisiak
parent
4fd3044ca0
commit
e8b4feddc3
@@ -100,6 +100,10 @@ class URLFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
|
||||
# even on domains that don't fail the domain label length check in
|
||||
# the regex.
|
||||
'http://%s' % ("X" * 200,),
|
||||
# urlsplit() raises ValueError.
|
||||
'////]@N.AN',
|
||||
# Empty hostname.
|
||||
'#@A.bO',
|
||||
]
|
||||
msg = "'Enter a valid URL.'"
|
||||
for value in tests:
|
||||
|
||||
Reference in New Issue
Block a user