From 71035d5d0ed13cc388f1c729d7b8fab8b321038c Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 11 Jul 2008 15:05:19 +0000 Subject: Make sure username and blogname are alphanumeric only, fixes #523 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1372 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/wpmu-functions.php | 1 + 1 file changed, 1 insertion(+) (limited to 'wp-includes/wpmu-functions.php') diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 862f893..f30f986 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1123,6 +1123,7 @@ function generate_random_password( $len = 8 ) { } function wpmu_create_user( $user_name, $password, $email) { + $user_name = ereg_replace("[^A-Za-z0-9]", "", $user_name); if ( username_exists($user_name) ) return false; -- cgit