fix cs
This commit is contained in:
parent
2f0e7863c2
commit
41e69782dc
@ -1862,7 +1862,7 @@ class Request
|
||||
|
||||
// Does the baseUrl have anything in common with the request_uri?
|
||||
$requestUri = $this->getRequestUri();
|
||||
if ($requestUri !== '' && $requestUri[0] !== '/') {
|
||||
if ('' !== $requestUri && '/' !== $requestUri[0]) {
|
||||
$requestUri = '/'.$requestUri;
|
||||
}
|
||||
|
||||
@ -1940,7 +1940,7 @@ class Request
|
||||
if (false !== $pos = strpos($requestUri, '?')) {
|
||||
$requestUri = substr($requestUri, 0, $pos);
|
||||
}
|
||||
if ($requestUri !== '' && $requestUri[0] !== '/') {
|
||||
if ('' !== $requestUri && '/' !== $requestUri[0]) {
|
||||
$requestUri = '/'.$requestUri;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user