Changeset 1363

Show
Ignore:
Timestamp:
07/09/08 19:51:04 (4 months ago)
Author:
donncha
Message:

Correct PHP_SELF when VHOST == no, fixes #626, props jergendutch

Files:

Legend:

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

    r1349 r1363  
    9494// Fix empty PHP_SELF 
    9595$PHP_SELF = $_SERVER['PHP_SELF']; 
    96 if ( empty($PHP_SELF)
     96if ( empty($PHP_SELF) || constant( 'VHOST' ) == 'no'
    9797        $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]); 
    9898