WordPress.org

Make WordPress Core

Ticket #7270: 7270.2.diff

File 7270.2.diff, 638 bytes (added by bryanmaupin, 3 years ago)

I've had this issue with every version of Wordpress. This patch is for Wordpress 3.0.6 r17715

  • wp-includes/load.php

     
    7474                                $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING']; 
    7575                        } 
    7676                } 
    77         } 
     77        } else { 
     78        $_SERVER['REQUEST_URI'] = preg_replace( "/%7[Ee]/", "~", $_SERVER['REQUEST_URI'] ); 
     79    } 
    7880 
    7981        // Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests 
    8082        if ( isset( $_SERVER['SCRIPT_FILENAME'] ) && ( strpos( $_SERVER['SCRIPT_FILENAME'], 'php.cgi' ) == strlen( $_SERVER['SCRIPT_FILENAME'] ) - 7 ) )