Opened 3 years ago

Closed 3 years ago

#22123 closed Bug (fixed)

EmailValidator does not accept IPv6 literals

Reported by: erikr Owned by: erikr
Component: Forms Version: master
Severity: Normal Keywords: nlsprint14
Cc: eromijn@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


EmailValidator currently supports normal domains (foo@…) and IPv4 literals (foo@[]). IPv6 support is currently missing (foo@[2001:db8::1]). This is specified to be valid, along with the other IPv6 notations, in RFC 5321 section 4.1.3.

Change History (3)

comment:1 Changed 3 years ago by erikr

  • Cc eromijn@… added
  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

PR in

This also cleans up the IPv4 regex used in EmailValidator, as that is already available as part of the existing IPv4 validator. The regex previously used as part of domain_regex was identical, so this does not break backwards compatibility.

comment:2 Changed 3 years ago by erikr

  • Owner changed from nobody to erikr
  • Status changed from new to assigned

comment:3 Changed 3 years ago by Baptiste Mispelon <bmispelon@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In 98f13762d7e18c0ba12044eed56e9198ca056c66:

Fixed #22123 -- EmailValidator now also accepts IPv6 literals in addresses

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