Browse Source

fixes #1811

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
e8a80af413
  1. 4
      framework/yii/web/Request.php

4
framework/yii/web/Request.php

@ -584,7 +584,9 @@ class Request extends \yii\base\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);
}

Loading…
Cancel
Save