Show
Ignore:
Timestamp:
09/01/08 15:49:44 (4 months ago)
Author:
moeffju
Message:

Site::script_name() was using SCRIPT_URL which is not always set, and if it is, is set to the 'wrong' URL (before rewriting).
The correct data is in SCRIPT_NAME and PHP_SELF.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/system/classes/site.php

    r2417 r2426  
    4747        case isset ( $scriptname ): 
    4848            break; 
    49         case isset( $_SERVER['SCRIPT_URL'] ): 
    50             $scriptname= $_SERVER['SCRIPT_URL']; 
    51             break; 
    5249        case isset( $_SERVER['SCRIPT_NAME'] ): 
    5350            $scriptname= $_SERVER['SCRIPT_NAME']; 
     51            break; 
     52        case isset( $_SERVER['PHP_SELF'] ): 
     53            $scriptname= $_SERVER['PHP_SELF']; 
    5454            break; 
    5555        default: