mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 01:30:23 +08:00
fixes #1811
This commit is contained in:
@@ -584,7 +584,9 @@ class Request extends \yii\base\Request
|
|||||||
throw new InvalidConfigException('Unable to determine the path info of the current request.');
|
throw new InvalidConfigException('Unable to determine the path info of the current request.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($pathInfo[0] === '/') {
|
if ($pathInfo === '/') {
|
||||||
|
$pathInfo = '';
|
||||||
|
} else if ($pathInfo[0] === '/') {
|
||||||
$pathInfo = substr($pathInfo, 1);
|
$pathInfo = substr($pathInfo, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user