--
Ticket URL: <https://code.djangoproject.com/ticket/26423>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by sergei-maertens):
We should also assert that non-ascii characters are allowed in the local
part of the e-mail address, see #25986 for background on this issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:1>
* owner: nobody => cjbcross
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:2>
Comment (by cjbcross):
Taking ownership on this at PyCon2016 Sprint. Discussed with Markus and
have background on consensus direction a solution should take.
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:3>
Comment (by claudep):
It would have been nice to know the "consensus direction" mentioned in the
comment above!
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:4>
Comment (by claudep):
#27029 was closed as a duplicate.
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:5>
Comment (by claudep):
This [https://github.com/django/django/pull/7039 PR] only marginally
simplifies the regex, but all current tests are still passing, in addition
of the non-ASCII local part.
I'm not sure it solves all concerns of this report, to be
discussed/confirmed.
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:6>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:7>
* has_patch: 1 => 0
Comment:
My patch was moved to #27029.
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:8>
Comment (by deltaskelta):
Replying to [ticket:26423 timgraham]:
> As discussed on the [https://groups.google.com/d/topic/django-
developers/ASBJ0ge2KYo/discussion django-developers mailing list], the
regular expressions for validating email addresses are complicated for
questionable benefit. We should simplify it to use HTML5 type="email"
validation ([http://blog.gerv.net/2011/05/html5_email_address_regexp/
possible candidate]). A deprecation may be needed to give time for
projects to add back more complex validation that they might required.
I've found another possible fix here
https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address,
but I have tried this regex and it does not match much out of the ASCII
range. What does "HTML5" like browsers match that this regex does not?
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:9>
Comment (by claudep):
I suggest that Unicode validation be discussed separately in #27029.
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:10>
* status: assigned => new
* owner: Chris Butler => (none)
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:11>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/7742 PR] from Collin Anderson.
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:12>
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:13>
* owner: (none) => Haris Ibrahim K. V.
* status: new => assigned
Comment:
I've added some documentation that I think will help keep the user
expectations clear after digging into the conversation / discussion
history of this ticket.
https://github.com/django/django/pull/8081
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:14>
Comment (by MisRob):
#27932 was closed as a duplicate
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:15>
Comment (by Max Nordlund):
I came across this today and realized that the current regexp, in 1.10.5,
contains a type. At least I think it does, since the opening bracket of
the second range in `user_regex` is escaped, but it shouldn't be.
Anyway, I threw together a small PR to fix that, and I hope it can be
merge to stable until this lands. I also added a bunch of new examples,
and at the very least those should get slurped into the PR from Haris.
See https://github.com/django/django/pull/8187
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:16>
* status: assigned => new
* owner: Haris Ibrahim K. V. => (none)
Comment:
Not maintaining the PR any more. Please do feel free to fork and submit a
new PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/26423#comment:17>