diff --git a/wp-includes/load.php b/wp-includes/load.php
index 298dd7d..cd6ddcd 100644
a
|
b
|
function wp_fix_server_vars() { |
46 | 46 | |
47 | 47 | $_SERVER = array_merge( $default_server_values, $_SERVER ); |
48 | 48 | |
| 49 | // Fix bad assumption of REQUEST_URI |
| 50 | // http://en.wikipedia.org/wiki/URI_scheme#Examples |
| 51 | // http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2 |
| 52 | $_SERVER[ 'REQUEST_URI' ] = preg_replace( '(^https?://' . $_SERVER[ 'HTTP_HOST' ] . ')i' , NULL , $_SERVER[ 'REQUEST_URI' ] ); |
| 53 | |
49 | 54 | // Fix for IIS when running with PHP ISAPI |
50 | 55 | if ( empty( $_SERVER['REQUEST_URI'] ) || ( php_sapi_name() != 'cgi-fcgi' && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) { |
51 | 56 | |