[wpmu-trac] Re: [WordPress MU Trac] #680: Alphanumeric user name may be too strong in wpmu_create_user

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Jul 17 16:37:41 GMT 2008


#680: Alphanumeric user name may be too strong in wpmu_create_user
-------------------------------------------------+--------------------------
 Reporter:  ev3rywh3re                           |        Owner:  somebody
     Type:  defect                               |       Status:  reopened
 Priority:  normal                               |    Milestone:          
Component:  component1                           |      Version:          
 Severity:  major                                |   Resolution:          
 Keywords:  username, profile, wpmu_create_user  |  
-------------------------------------------------+--------------------------
Changes (by ev3rywh3re):

  * keywords:  username, profile => username, profile, wpmu_create_user
  * status:  closed => reopened
  * resolution:  fixed =>
  * summary:  Alphanumeric user name may be too strong => Alphanumeric user
              name may be too strong in wpmu_create_user

Comment:

 I wasn't able to really debug this yesterday, so here's more.

 The issue seems to actually be in wpmu_create_user() in wpmu-functions.php
 line 1148.

 {{{
         $user_name = ereg_replace("[^A-Za-z0-9]", "", $user_name);
 }}}

 This causes admin added usernames using Site Admin > Users to be
 restricted to alphanumeric with no filter or action to change behavior.

 I don't know if I am missing the intent of this restriction.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/680#comment:2>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list