[wpmu-trac] [WordPress MU Trac] #1116: wpmu-functions.php - Create a new user with invalid characters
WordPress MU Trac
wpmu-trac at lists.automattic.com
Wed Sep 16 00:54:28 UTC 2009
#1116: wpmu-functions.php - Create a new user with invalid characters
----------------------------+-----------------------------------------------
Reporter: johndeery | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.8.2
Component: Administration | Version: 2.8
Severity: normal | Keywords: username, invalid character
----------------------------+-----------------------------------------------
When creating a new user from the main admin -> users -> add new user, you
can use a period (.) or hyphen (-) in the user name. However, when adding
from the blog itself under Users -> Add New, trying to use either of those
characters results in an error message.
Line 912 of wpmu-fuctions.php:
{{{
preg_match( "/[a-z0-9]+/", $user_name, $maybe );
}}}
to
{{{
preg_match( "/[a-z0-9.-]+/", $user_name, $maybe );
}}}
Not sure if that's 100% correct, but it worked in my environment (not a
regex-pert)
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/1116>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list