return '' instead of false

remotes/origin/certificate-external-storage-visibility
Jörn Friedrich Dreyer 2015-09-23 12:32:49 +07:00
parent ca8d589f27
commit d81416c51d
1 changed files with 1 additions and 1 deletions

@ -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;