Changeset 4513

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

trying Ryan's suggestion for #3215

Files:

Legend:

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

    r4495 r4513  
    777777 
    778778    if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) 
     779        @header("HTTP/1.1 $header $text"); 
     780    else 
    779781        @header("Status: $header $text"); 
    780     else 
    781         @header("HTTP/1.1 $header $text"); 
    782782} 
    783783 
  • trunk/wp-includes/pluggable.php

    r4495 r4513  
    271271        header("Refresh: 0;url=$location"); 
    272272    } else { 
    273         status_header($status); // This causes problems on IIS 
     273        if ( php_sapi_name() != 'cgi-fcgi' ) 
     274            status_header($status); // This causes problems on IIS and some FastCGI setups 
    274275        header("Location: $location"); 
    275276    }