[wp-trac] [WordPress Trac] #17904: Multisite has more restrictions on user login character set

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 27 11:09:13 UTC 2011


#17904: Multisite has more restrictions on user login character set
--------------------------+----------------------------
 Reporter:  duck_         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Multisite     |    Version:  3.0
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+----------------------------
 Multisite has more restrictions on the characters allowed in a user's
 login name compared to single site. This seems unnecessary and confusing.
 It was also the root of a recent bug in the importer, see
 [http://wordpress.org/support/topic/invalid-author-importing-single-
 wordpress-to-mulitsite-wordpress?replies=21#post-2186667 this forum
 thread] and the [http://plugins.trac.wordpress.org/changeset/401649
 workaround].

 I haven't worked up a patch yet since there seem to be a few locations
 where these restrictions are enforced and I don't know if I have found
 them all yet:

  - wpmu_validate_user_signup() uses the regex `/[a-z0-9]+/`
  - ms-default-filters.php adds `strtolower` to `sanitize_user`

 Relevant: http://mu.trac.wordpress.org/changeset/1689 [12948]

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


More information about the wp-trac mailing list