Ticket #17504: patch.diff

File patch.diff, 687 bytes (added by karthikabinav, 12 years ago)

Replaced with the last occurence of @ symbol

  • django/contrib/auth/models.py

     
    121121        Creates and saves a User with the given username, email and password.
    122122        """
    123123        now = timezone.now()
    124 
    125124        # Normalize the address by lowercasing the domain part of the email
    126125        # address.
    127126        email = email or ''
    128127        try:
    129             email_name, domain_part = email.strip().split('@', 1)
     128            email_name, domain_part = email.strip().rsplit('@', 1)
    130129        except ValueError:
    131130            pass
    132131        else:
Back to Top