#30257: UsernameValidator allows trailing newline in usernames
-------------------------------+---------------------------------------
     Reporter:  Robert Grosse  |                    Owner:  Ryan Schave
         Type:  Bug            |                   Status:  assigned
    Component:  contrib.auth   |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+---------------------------------------
Changes (by Ryan Schave):

 * needs_better_patch:  1 => 0


Comment:

 I reviewed the ASCII and Unicode validators and confirmed the regex is
 compiled without the MULTILINE flag.  In this configuration !^ and \A have
 the same behavior - a newline at the beginning of the string is rejected.
 I reverted back to !^ and left \Z in place.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30257#comment:5>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.d71a1329c65845043728440c5a12ac4b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to