diff options
Diffstat (limited to 'remote.php')
-rw-r--r-- | remote.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/remote.php b/remote.php index 8dc4df1bd23..41d2a7ab349 100644 --- a/remote.php +++ b/remote.php @@ -1,12 +1,7 @@ <?php -$RUNTIME_NOSETUPFS = true; $RUNTIME_NOAPPS = TRUE; require_once('lib/base.php'); -if (array_key_exists('PATH_INFO', $_SERVER)){ - $path_info = $_SERVER['PATH_INFO']; -}else{ - $path_info = substr($_SERVER['REQUEST_URI'], strlen($_SERVER['SCRIPT_NAME'])); -} +$path_info = OC_Request::getPathInfo(); if ($path_info === false) { OC_Response::setStatus(OC_Response::STATUS_NOT_FOUND); exit; |