diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-30 22:17:02 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-30 22:17:02 +0200 |
commit | ff75652cb7f19da633d1c17c8805a3d3200dd828 (patch) | |
tree | 3d609555be5599d040e5bbf0f78b7386f379552a /lib | |
parent | be8ad69d3511f6037d33d58caa3557987522ab05 (diff) | |
parent | d81416c51dc85b9eaf8b0e5128e216585c7b781b (diff) | |
download | nextcloud-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.php | 2 |
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; |