WordPress.org

Make WordPress Core

Changeset 11661


Ignore:
Timestamp:
06/28/09 00:44:06 (6 years ago)
Author:
azaozz
Message:

Improved $_SERVERREQUEST_URI? test for IIS, props ruslany, fixes #5682 for 2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-settings.php

    r11623 r11661  
    6161    $blog_id = 1; 
    6262 
    63 // Fix for IIS, which doesn't set REQUEST_URI 
    64 if ( empty( $_SERVER['REQUEST_URI'] ) ) { 
     63// Fix for IIS when running with PHP ISAPI 
     64if ( empty( $_SERVER['REQUEST_URI'] ) || ( php_sapi_name() != 'cgi-fcgi' && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) { 
    6565 
    6666    // IIS Mod-Rewrite 
Note: See TracChangeset for help on using the changeset viewer.