WordPress.org

Make WordPress Core

Changeset 3069


Ignore:
Timestamp:
11/14/2005 08:56:40 AM (16 years ago)
Author:
matt
Message:

This should fix permalinks, but may break the PHP as CGI funkiness again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r3053 r3069  
    3939    $_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED'];
    4040
    41 // Fix for PHP as CGI hosts that set PATH_INFO to PHP_SELF value
    42 if ( isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == $_SERVER['PHP_SELF'] )
     41// Fix for Dreamhost and other PHP as CGI hosts
     42if ( strstr( $_SERVER['SCRIPT_NAME'], 'php.cgi' ) )
    4343    unset($_SERVER['PATH_INFO']);
     44
    4445
    4546if ( !(phpversion() >= '4.1') )
Note: See TracChangeset for help on using the changeset viewer.