Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-07 22:33:25 +0400
committerBart Visscher <bartv@thisnet.nl>2012-08-07 22:43:00 +0400
commit7d20e98aec3cbea66134b40747881b0b7b51eb92 (patch)
tree4d9db7958c18d6d90e84ad6cd5a2d61378d86e17 /remote.php
parent95031cb139506e6f1426a78f6ac4dd764a2851a4 (diff)
Move getting the path info to OC_Request
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/remote.php b/remote.php
index 8dc4df1bd23..483b19555c8 100644
--- a/remote.php
+++ b/remote.php
@@ -2,11 +2,7 @@
$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;