Improved $_SERVER['REQUEST_URI'] test for IIS, props ruslany, fixes #5682 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11662 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
861fd5e250
commit
76449fcfd2
@ -60,8 +60,8 @@ $_REQUEST = array_merge($_GET, $_POST);
|
||||
if ( ! isset($blog_id) )
|
||||
$blog_id = 1;
|
||||
|
||||
// Fix for IIS, which doesn't set REQUEST_URI
|
||||
if ( empty( $_SERVER['REQUEST_URI'] ) ) {
|
||||
// Fix for IIS when running with PHP ISAPI
|
||||
if ( empty( $_SERVER['REQUEST_URI'] ) || ( php_sapi_name() != 'cgi-fcgi' && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) {
|
||||
|
||||
// IIS Mod-Rewrite
|
||||
if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user