aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-09-23 12:32:49 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-09-23 12:32:49 +0200
commitd81416c51dc85b9eaf8b0e5128e216585c7b781b (patch)
treecd2495c5dd2e8151f05f2e222552c374d1a0a0a6
parentca8d589f270017087776202f0ba470c39fed050b (diff)
downloadnextcloud-server-d81416c51dc85b9eaf8b0e5128e216585c7b781b.tar.gz
nextcloud-server-d81416c51dc85b9eaf8b0e5128e216585c7b781b.zip
return '' instead of false
-rw-r--r--lib/private/appframework/http/request.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php
index b430673f9a9..af6015b0eef 100644
--- a/lib/private/appframework/http/request.php
+++ b/lib/private/appframework/http/request.php
@@ -603,7 +603,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
if (strpos($pathInfo, $name) === 0) {
$pathInfo = substr($pathInfo, strlen($name));
}
- if($pathInfo === '/'){
+ if($pathInfo === false || $pathInfo === '/'){
return '';
} else {
return $pathInfo;