added support for PHP running as (F)CGI (uses ORIG_PATH_INFO instead of PATH_INFO)

This commit is contained in:
Ralf Becker 2010-09-27 07:55:15 +00:00
parent 61812f4dc5
commit c1d7256972

View File

@ -33,7 +33,7 @@ function check_access(&$account)
}
// if we are called with a /apps/$app path, use that $app as currentapp, to not require filemanager rights for the links
$parts = explode('/',$_SERVER['PATH_INFO']);
$parts = explode('/',isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : $_SERVER['ORIG_PATH_INFO']);
//error_log("webdav: explode".print_r($parts,true));
if(count($parts) == 1)
{