|
|
@ -577,7 +577,7 @@ class Request extends \yii\base\Request |
|
|
|
$pathInfo = substr($pathInfo, strlen($scriptUrl)); |
|
|
|
$pathInfo = substr($pathInfo, strlen($scriptUrl)); |
|
|
|
} elseif ($baseUrl === '' || strpos($pathInfo, $baseUrl) === 0) { |
|
|
|
} elseif ($baseUrl === '' || strpos($pathInfo, $baseUrl) === 0) { |
|
|
|
$pathInfo = substr($pathInfo, strlen($baseUrl)); |
|
|
|
$pathInfo = substr($pathInfo, strlen($baseUrl)); |
|
|
|
} elseif (strpos($_SERVER['PHP_SELF'], $scriptUrl) === 0) { |
|
|
|
} elseif (isset($_SERVER['PHP_SELF']) && strpos($_SERVER['PHP_SELF'], $scriptUrl) === 0) { |
|
|
|
$pathInfo = substr($_SERVER['PHP_SELF'], strlen($scriptUrl)); |
|
|
|
$pathInfo = substr($_SERVER['PHP_SELF'], strlen($scriptUrl)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
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.'); |
|
|
|