WordPress.org

Make WordPress Core

Changeset 3034


Ignore:
Timestamp:
11/10/2005 11:57:45 PM (16 years ago)
Author:
matt
Message:

Fixes #1591 (again)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r3011 r3034  
    3434    }
    3535}
     36
     37// Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests
     38if ( strpos($_SERVER['SCRIPT_FILENAME'], 'php.cgi') == strlen($_SERVER['SCRIPT_FILENAME']) - 7 )
     39    $_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED'];
     40
     41// Fix for PHP as CGI hosts that set PATH_INFO to PHP_SELF value
     42if ( $_SERVER['PATH_INFO'] == $_SERVER['PHP_SELF'] )
     43    unset($_SERVER['PATH_INFO']);
    3644
    3745if ( !(phpversion() >= '4.1') )
Note: See TracChangeset for help on using the changeset viewer.