mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Fixed #12027 -- Fixed EmailValidator to reject a trailing dot.
Thanks Klas H for the report and claudep for the patch.
This commit is contained in:
parent
efb05978b3
commit
4cfbde71a3
2 changed files with 2 additions and 1 deletions
|
@ -56,6 +56,7 @@ TEST_DATA = (
|
|||
# Quoted-string format (CR not allowed)
|
||||
(validate_email, '"\\\011"@here.com', None),
|
||||
(validate_email, '"\\\012"@here.com', ValidationError),
|
||||
(validate_email, 'trailingdot@shouldfail.com.', ValidationError),
|
||||
|
||||
(validate_slug, 'slug-ok', None),
|
||||
(validate_slug, 'longer-slug-still-ok', None),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue