Changeset 2004
- Timestamp:
- May 8, 2007, 12:12:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_cookie.inc.php
r1993 r2004 37 37 } 38 38 else if ( isset($_SERVER['REDIRECT_URL']) ) 39 { // mod_rewrite is activated for upper level directories. we must set the 39 { 40 // mod_rewrite is activated for upper level directories. we must set the 40 41 // cookie to the path shown in the browser otherwise it will be discarded. 41 if ( isset($_SERVER['PATH_INFO']) and !empty($_SERVER['PATH_INFO']) ) 42 { 43 $idx = strpos( $_SERVER['REDIRECT_URL'], $_SERVER['PATH_INFO'] ); 44 if ($idx !== false) 45 { 46 $scr = substr($_SERVER['REDIRECT_URL'], 0, $idx); 47 } 48 else 49 {//this should never happen 50 $scr='//'; 51 } 52 } 53 else 54 { 55 $scr = $_SERVER['REDIRECT_URL']; 56 } 42 $scr = $_SERVER['REDIRECT_URL']; 57 43 } 58 44 else … … 60 46 $scr = $_SERVER['SCRIPT_NAME']; 61 47 } 48 62 49 $scr = substr($scr,0,strrpos( $scr,'/')); 63 50
Note: See TracChangeset
for help on using the changeset viewer.