[wp-trac] Re: [WordPress Trac] #2968: WP lets two different users register with same user name

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 23 00:17:02 GMT 2006


#2968: WP lets two different users register with same user name
----------------------------+-----------------------------------------------
 Reporter:  RuddO           |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  high            |    Milestone:           
Component:  Administration  |      Version:  2.0.3    
 Severity:  critical        |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by darkfate):

 Well, the sanitize_user function allows for a space, so it is possible to
 have the space in front since it's not doing trim.


 {{{
         $username = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '',
 $username);
         $username = preg_replace('/&.+?;/', '', $username); // Kill
 entities
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2968>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list