diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-16 00:15:02 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-16 00:15:02 +0200 |
commit | 18ce53f426e53a201570a97c4cf00b854315cca0 (patch) | |
tree | c6f589ada2ba64625fa1337c01cda6de35ae8d3a /remote.php | |
parent | 6d3ae575b6ed9934e37a884ea152008a29cbfc7b (diff) | |
parent | c704e8077f40c41c02f0a1644ca84b9b0605dc11 (diff) | |
download | nextcloud-server-18ce53f426e53a201570a97c4cf00b854315cca0.tar.gz nextcloud-server-18ce53f426e53a201570a97c4cf00b854315cca0.zip |
Merge commit 'refs/merge-requests/121' of git://gitorious.org/owncloud/owncloud
Diffstat (limited to 'remote.php')
-rw-r--r-- | remote.php | 2 |
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); |