return '' instead of false
This commit is contained in:
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;
|
||||
|
|
Loading…
Reference in a new issue