Opened 10 years ago

Closed 10 years ago

#16310 closed Bug (duplicate)

EmailValiadtor lets through [...].com. (dot at the end)

Reported by: anonymous Owned by: nobody
Component: Core (Other) Version: 1.3
Severity: Normal Keywords: EmailValiadtor validation email
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no


>>> from django.core.validators import validate_email
>>> validate_email('')
[no error raised, note dot at the end of address]

Attachments (1) (1.4 KB) - added by Julien Phalip 10 years ago.
Fix + test

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by Julien Phalip

Attachment: added

Fix + test

comment:1 Changed 10 years ago by Julien Phalip

Triage Stage: UnreviewedAccepted

comment:2 Changed 10 years ago by Julien Phalip

Patch needs improvement: set

Note that this bug was introduced in changeset [11605], which itself was to fix a security issue where the email and url validation regular expressions could be exploited in public form submissions to cause a DOS. Therefore this bug should be fixed cautiously. In particular more thorough tests should be written to ensure that no dangerous regression (and no regression at all, even) is introduced.

comment:3 Changed 10 years ago by Julien Phalip

Resolution: duplicate
Status: newclosed

This is a dupe of #12027.

Note: See TracTickets for help on using tickets.
Back to Top