summaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-06-16 09:35:53 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-06-16 09:35:53 +0200
commita6531d0311d6401562827ed12da6cdc8560b70f7 (patch)
treef188258612a15c28954d0873583b59dc199c5c13 /remote.php
parentfbd45a939fc52bf2e2865a35122b8abbb009b2b4 (diff)
parentbf2062b09d6c3a3d1c8b94b3612b6bb940aa5b79 (diff)
downloadnextcloud-server-a6531d0311d6401562827ed12da6cdc8560b70f7.tar.gz
nextcloud-server-a6531d0311d6401562827ed12da6cdc8560b70f7.zip
Merge branch 'master' into calendar_repeat
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.php b/remote.php
index b1be50f36a7..0c5804221bb 100644
--- a/remote.php
+++ b/remote.php
@@ -5,7 +5,7 @@ require_once('lib/base.php');
if (array_key_exists('PATH_INFO', $_SERVER)){
$path_info = $_SERVER['PATH_INFO'];
}else{
- $path_info = substr($_SERVER['PHP_SELF'], strpos($_SERVER['PHP_SELF'], basename(__FILE__)) + strlen(basename(__FILE__)));
+ $path_info = substr($_SERVER['REQUEST_URI'], strlen($_SERVER['SCRIPT_NAME']));
}
if ($path_info === false) {
OC_Response::setStatus(OC_Response::STATUS_NOT_FOUND);