diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-15 15:43:04 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-20 21:09:47 +0400 |
commit | 7ffe80cf259945ca85a3dde396b2fb7ef0df2af8 (patch) | |
tree | 2fc932cbf6f283191ab60a9608e07a4d5f13cbe9 /lib/private/request.php | |
parent | 86daab2800aacdbc26dd532f348766cccaad1e51 (diff) |
Add unit tests for convertToRelativePath
Diffstat (limited to 'lib/private/request.php')
-rwxr-xr-x | lib/private/request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/request.php b/lib/private/request.php index 5fd5b3a7197..221a21a258f 100755 --- a/lib/private/request.php +++ b/lib/private/request.php @@ -205,7 +205,7 @@ class OC_Request { * @return string Path info or false when not found */ public static function getRawPathInfo() { - $requestUri = $_SERVER['REQUEST_URI']; + $requestUri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ''; // remove too many leading slashes - can be caused by reverse proxy configuration if (strpos($requestUri, '/') === 0) { $requestUri = '/' . ltrim($requestUri, '/'); |