WordPress.org

Make WordPress Core

Ticket #4853: 4853.diff

File 4853.diff, 614 bytes (added by Nazgul, 11 years ago)
  • wp-settings.php

     
    4141                if (empty($_SERVER['PATH_INFO']))
    4242                        $_SERVER['REQUEST_URI'] = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')) . '/';
    4343                else
    44                         $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO'];
     44                        $_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO'];
    4545                       
    4646                // Append the query string if it exists and isn't null
    4747                if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {