Django

Code

Ticket #2312 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

E-mail validator should accept new TLDs such as ".museum"

Reported by: anonymous Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Id doesn't accept new TLDs like .museum

Attachments

Change History

07/08/06 08:56:33 changed by adrian

  • status changed from new to closed.
  • resolution set to wontfix.
  • summary changed from Admin e-mail validation problem. to E-mail validator should accept new TLDs such as ".museum".

07/08/06 13:14:42 changed by anonymous

why is this a wontfix?

07/08/06 13:27:19 changed by anonymous

interesting, i would like to know as well.

changing

r')@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}$', re.IGNORECASE)  # domain

to

r')@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}$', re.IGNORECASE)  # domain

you get

email_re = re.compile(
    r"(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*"  # dot-atom
    r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-011\013\014\016-\177])*"' # quoted-string
    r')@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}$', re.IGNORECASE)  # domain

which should work

07/09/06 17:40:07 changed by SmileyChris

  • status changed from closed to reopened.
  • resolution deleted.

I see no reason why this shouldn't be fixed, .museum is a valid TLD.

Adrian, would you care to explain why?

07/09/06 21:32:54 changed by adrian

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [3305]) Fixed #2312 -- E-mail validator now accepts TLDs up to 6 characters long


Add/Change #2312 (E-mail validator should accept new TLDs such as ".museum")




Change Properties
Action