WordPress.org

Make WordPress Core

Ticket #7270: 7270.diff

File 7270.diff, 527 bytes (added by jacobsantos, 10 years ago)

Patch for fix in the comments.

  • wp-settings.php

     
    8585                        $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
    8686                }
    8787        }
     88} else {
     89        // http://trac.wordpress.org/ticket/7270 - Reason for next line.
     90        $_SERVER['REQUEST_URI'] = preg_replace( "/%7[Ee]/", "~", $_SERVER['REQUEST_URI'] );
    8891}
    8992
    9093// Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests