From c1d7256972e33969fef5cb29c54ada4ade72667e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 27 Sep 2010 07:55:15 +0000 Subject: [PATCH] added support for PHP running as (F)CGI (uses ORIG_PATH_INFO instead of PATH_INFO) --- webdav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webdav.php b/webdav.php index f7e2a138f0..4d091fe99b 100644 --- a/webdav.php +++ b/webdav.php @@ -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) {