urlencode login

git-svn-id: http://svn.automattic.com/wordpress/trunk@11802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-08-11 05:56:43 +00:00
parent 55a2d968ce
commit 85c806b96b
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ function retrieve_password() {
$message .= get_option('siteurl') . "\r\n\r\n";
$message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
$message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
$message .= site_url("wp-login.php?action=rp&key=$key&login=$user_login", 'login') . "\r\n";
$message .= site_url("wp-login.php?action=rp&key=$key&login=" . urlencode($user_login), 'login') . "\r\n";
$title = sprintf(__('[%s] Password Reset'), get_option('blogname'));