summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-30 22:17:02 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-30 22:17:02 +0200
commitff75652cb7f19da633d1c17c8805a3d3200dd828 (patch)
tree3d609555be5599d040e5bbf0f78b7386f379552a /lib
parentbe8ad69d3511f6037d33d58caa3557987522ab05 (diff)
parentd81416c51dc85b9eaf8b0e5128e216585c7b781b (diff)
downloadnextcloud-server-ff75652cb7f19da633d1c17c8805a3d3200dd828.tar.gz
nextcloud-server-ff75652cb7f19da633d1c17c8805a3d3200dd828.zip
Merge pull request #19299 from owncloud/fixgetRawPathInfo
Fix get raw path info, always return a string
Diffstat (limited to 'lib')
-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;