#22579 closed Bug (fixed)
validate_email accepts trailing dash
Description ¶
In django 1.6 an EmailField (validate_email) will accept an address with a trailing dash at the end. Example: 'foo@…-'
In django 1.4 it would trigger a ValidationError, so I believe this is a regression.
Tested like so:
>>> from django.core.validators import validate_email >>> validate_email('foo@bar.com-')
expected: throws ValidationError
actual: no error thrown
This may be related to #12027, about the same behavior, but with a trailing dot. As with that bug, a trailing dash causes sendmail to throw an error.
Change History (7)
by , 11 years ago
Attachment: | 22579-1.diff added |
---|
comment:1 by , 11 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 11 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:3 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Tests are good, patch applies.