1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #33367 -- Fixed URLValidator crash in some edge cases.

This commit is contained in:
mendespedro
2021-12-15 11:55:19 -03:00
committed by Mariusz Felisiak
parent 4fd3044ca0
commit e8b4feddc3
2 changed files with 11 additions and 6 deletions

View File

@@ -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: