trim login

git-svn-id: http://svn.automattic.com/wordpress/trunk@4062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-07-28 23:16:31 +00:00
parent b6aaa70b7c
commit 112f50f0e4
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ if ($error)
break; break;
case 'retrievepassword': case 'retrievepassword':
$user_data = get_userdatabylogin($_POST['user_login']); $user_data = get_userdatabylogin(trim($_POST['user_login']));
// redefining user_login ensures we return the right case in the email // redefining user_login ensures we return the right case in the email
$user_login = $user_data->user_login; $user_login = $user_data->user_login;
$user_email = $user_data->user_email; $user_email = $user_data->user_email;