Commit e8a80af4 by Alexander Makarov

fixes #1811

parent c4c328dc
...@@ -584,7 +584,9 @@ class Request extends \yii\base\Request ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment