Make WordPress Core

Ticket #34697: 34697.diff

File 34697.diff, 489 bytes (added by voldemortensen, 8 years ago)
  • src/wp-login.php

     
    562562case 'resetpass' :
    563563case 'rp' :
    564564        list( $rp_path ) = explode( '?', wp_unslash( $_SERVER['REQUEST_URI'] ) );
     565        rtrim( $rp_path, '/' );
    565566        $rp_cookie = 'wp-resetpass-' . COOKIEHASH;
    566567        if ( isset( $_GET['key'] ) ) {
    567568                $value = sprintf( '%s:%s', wp_unslash( $_GET['login'] ), wp_unslash( $_GET['key'] ) );