Make WordPress Core

Ticket #8250: wp-login.php.diff

File wp-login.php.diff, 861 bytes (added by f00f, 16 years ago)
  • wp-login.php

     
    145145        $message .= get_option('siteurl') . "\r\n\r\n";
    146146        $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
    147147        $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
    148         $message .= site_url("wp-login.php?action=rp&key=$key", 'login') . "\r\n";
     148        $message .= site_url('wp-login.php?action=rp&key='.urlencode($key), 'login') . "\r\n";
    149149
    150150        if ( !wp_mail($user_email, sprintf(__('[%s] Password Reset'), get_option('blogname')), $message) )
    151151                die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');