Ticket #5682: 5682.r6635.diff

File 5682.r6635.diff, 469 bytes (added by hansengel, 4 years ago)

A patch of man999's solution—test that REQUEST_URI isn't set or that the current server is indeed IIS

  • wp-settings.php

     
    4949        $blog_id = 1; 
    5050 
    5151// Fix for IIS, which doesn't set REQUEST_URI 
    52 if ( empty( $_SERVER['REQUEST_URI'] ) ) { 
     52if ( empty( $_SERVER['REQUEST_URI'] ) || substr( $_SERVER['SERVER_SOFTWARE'], 0, 13 ) == 'Microsoft-IIS' ) { 
    5353 
    5454        // IIS Mod-Rewrite 
    5555        if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) {