WordPress.org

Make WordPress Core

Ticket #45897: 45897.patch

File 45897.patch, 678 bytes (added by sabernhardt, 19 months ago)
  • src/wp-includes/class-wp.php

     
    168168                        list( $pathinfo ) = explode( '?', $pathinfo );
    169169                        $pathinfo         = str_replace( '%', '%25', $pathinfo );
    170170
    171                         list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
     171                        list( $req_uri ) = explode( '?', urldecode( $_SERVER['REQUEST_URI'] ) );
    172172                        $self            = $_SERVER['PHP_SELF'];
    173173                        $home_path       = trim( parse_url( home_url(), PHP_URL_PATH ), '/' );
    174174                        $home_path_regex = sprintf( '|^%s|i', preg_quote( $home_path, '|' ) );