WordPress.org

Make WordPress Core

Ticket #4732: req-uri.patch

File req-uri.patch, 484 bytes (added by azaozz, 7 years ago)
  • wp-settings.php

     
    7979                        $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING']; 
    8080                } 
    8181        } 
     82} else { 
     83        $_SERVER['REQUEST_URI'] = preg_replace('|^.*' . $_SERVER['HTTP_HOST'] . '|i', '', $_SERVER['REQUEST_URI']); 
    8284} 
    8385 
    8486// Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests