Changeset 3069

Show
Ignore:
Timestamp:
11/14/05 08:56:40 (3 years ago)
Author:
matt
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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') )