Changeset 4514

Show
Ignore:
Timestamp:
11/22/06 04:59:31 (2 years ago)
Author:
markjaquith
Message:

trying Ryan's suggestion for #3215

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-includes/functions.php

    r4473 r4514  
    22292229        $text = 'Gone'; 
    22302230 
    2231     @header("HTTP/1.1 $header $text"); 
    2232     @header("Status: $header $text"); 
     2231        if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) 
     2232            @header("HTTP/1.1 $header $text"); 
     2233        else 
     2234            @header("Status: $header $text"); 
    22332235} 
    22342236 
  • branches/2.0/wp-includes/pluggable-functions.php

    r4384 r4514  
    266266        header("Refresh: 0;url=$location"); 
    267267    } else { 
    268         status_header($status); // This causes problems on IIS 
     268        if ( php_sapi_name() != 'cgi-fcgi' ) 
     269            status_header($status); // This causes problems on IIS and some FastCGI setups 
    269270        header("Location: $location"); 
    270271    }