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:
authorLukas Reschke <lukas@owncloud.com>2014-10-15 15:43:04 +0400
committerLukas Reschke <lukas@owncloud.com>2014-10-20 21:09:47 +0400
commit7ffe80cf259945ca85a3dde396b2fb7ef0df2af8 (patch)
tree2fc932cbf6f283191ab60a9608e07a4d5f13cbe9 /lib/private/request.php
parent86daab2800aacdbc26dd532f348766cccaad1e51 (diff)
Add unit tests for convertToRelativePath
Diffstat (limited to 'lib/private/request.php')
-rwxr-xr-xlib/private/request.php2
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, '/');