#17504: User.objects.create_user() wrong email domain part identification
------------------------------+--------------------
     Reporter:  fero          |      Owner:  nobody
         Type:  Bug           |     Status:  new
    Component:  contrib.auth  |    Version:  SVN
     Severity:  Normal        |   Keywords:
 Triage Stage:  Unreviewed    |  Has patch:  0
Easy pickings:  0             |      UI/UX:  0
------------------------------+--------------------
 According to http://tools.ietf.org/html/rfc3696#section-3 the "@" symbol
 can be part of the local part of an email address, so
 
[https://code.djangoproject.com/browser/django/trunk/django/contrib/auth/models.py#L129
 line 129 of contrib.auth.models] is bugged.

 The unbelivable complex ;) patch is:
 {{{
 -    email_name, domain_part = email.strip().split('@', 1)
 +    email_name, domain_part = email.strip().rsplit('@', 1)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17504>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to