Commit cbdcb081 authored by Bong Cosca's avatar Bong Cosca
Browse files

NEW: PATH variable; returns the URL relative to BASE

parent cc04fe3f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1492,6 +1492,8 @@ final class Base {
			isset($headers['X-Forwarded-Proto']) &&
			$headers['X-Forwarded-Proto']=='https'?'https':'http';
		$base=preg_replace('/\/[^\/]+$/','',$_SERVER['SCRIPT_NAME']);
		preg_match('/'.preg_quote($base,'/').'(.*)/',
			$_SERVER['REQUEST_URI'],$path);
		call_user_func_array('session_set_cookie_params',
			$jar=array(
				'expire'=>0,
@@ -1552,6 +1554,7 @@ final class Base {
			'ONERROR'=>NULL,
			'PACKAGE'=>self::PACKAGE,
			'PARAMS'=>array(),
			'PATH'=>$path[1],
			'PATTERN'=>NULL,
			'PLUGINS'=>$this->fixslashes(__DIR__).'/',
			'PORT'=>isset($_SERVER['SERVER_PORT'])?