Opened 11 years ago

Closed 11 years ago

Last modified 7 years ago

#1275 closed defect (fixed)

email validator does not accept single letter subdomains

Reported by: volsung@… Owned by: Adrian Holovaty
Component: Validators Version:
Severity: normal Keywords:
Cc: Jason Yosinski Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The validator for an EmailField does not accept email addresses which contain a single letter subdomain. For example: iamnotauser@… is rejected.

I would suggest a patch, but I think I would need to be a cyborg to understand the regular expression in django/core/

email_re = re.compile(r'^((([\t\x20]*[!#-\'\*\+\-/-9=\?A-Z\^-~]+[\t\x20]*|"[\x01

Change History (3)

comment:1 Changed 11 years ago by volsung@…

The RFC822-compliant regex posted in ticket #1288 fixes this problem.

comment:2 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [2367]) Fixed #1275 and #1288 -- Change e-mail address validator regular expression to be faster, simpler and accept subdomains

comment:3 Changed 7 years ago by Jason Yosinski

Cc: Jason Yosinski added
Note: See TracTickets for help on using tickets.
Back to Top