From d81416c51dc85b9eaf8b0e5128e216585c7b781b Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Wed, 23 Sep 2015 12:32:49 +0200 Subject: return '' instead of false --- lib/private/appframework/http/request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/appframework') 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; -- cgit v1.2.3