diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-15 13:43:04 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-20 15:09:43 +0200 |
commit | 8f8abdbaeef7bcaff1f822714a7f227933cc43c1 (patch) | |
tree | d7f4debad1aee9156b384dc07ce8ac410def21bd /lib/private | |
parent | 7b94c7f9c1d2dd8115506d90f04f9e3e2f989cf5 (diff) | |
download | nextcloud-server-8f8abdbaeef7bcaff1f822714a7f227933cc43c1.tar.gz nextcloud-server-8f8abdbaeef7bcaff1f822714a7f227933cc43c1.zip |
Add unit tests for convertToRelativePath
Diffstat (limited to 'lib/private')
-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 fa446837a97..1cfa4a150c5 100755 --- a/lib/private/request.php +++ b/lib/private/request.php @@ -245,7 +245,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, '/'); |