Ticket #5682: 5682_fcgi.2.patch

File 5682_fcgi.2.patch, 583 bytes (added by ruslany, 3 years ago)

Updated patch as per ddebernardy suggestions

  • wp-settings.php

     
    6060if ( ! isset($blog_id) ) 
    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'] ) > 0 ) { 
    6565 
    6666        // IIS Mod-Rewrite 
    6767        if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) {