WordPress.org

Make WordPress Core

Ticket #10249: 10249.diff

File 10249.diff, 677 bytes (added by westi, 9 years ago)

A fix of sorts... needs alot of testing

  • wp-includes/classes.php

    ### Eclipse Workspace Patch 1.0
    #P trunk.domain
     
    171171                        // front.  For path info requests, this leaves us with the requesting
    172172                        // filename, if any.  For 404 requests, this leaves us with the
    173173                        // requested permalink.
    174                         $req_uri = str_replace($pathinfo, '', rawurldecode($req_uri));
     174                        $req_uri = str_replace($pathinfo, '', $req_uri);
    175175                        $req_uri = trim($req_uri, '/');
    176176                        $req_uri = preg_replace("|^$home_path|", '', $req_uri);
    177177                        $req_uri = trim($req_uri, '/');