WordPress.org

Make WordPress Core

Changeset 11662


Ignore:
Timestamp:
06/28/2009 12:45:12 AM (9 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r11622 r11662  
    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.