mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed an email validation regression
Thanks Vincent Wagelaar for the report.
This commit is contained in:
parent
3aad955ea8
commit
11b7b9ad00
2 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ TEST_DATA = (
|
|||
(validate_email, 'example@-invalid.com', ValidationError),
|
||||
(validate_email, 'example@inv-.alid-.com', ValidationError),
|
||||
(validate_email, 'example@inv-.-alid.com', ValidationError),
|
||||
(validate_email, 'test@example.com\n\n<script src="x.js">', ValidationError),
|
||||
# Quoted-string format (CR not allowed)
|
||||
(validate_email, '"\\\011"@here.com', None),
|
||||
(validate_email, '"\\\012"@here.com', ValidationError),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue