We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f4adfd + 2b82ce8 commit 88754caCopy full SHA for 88754ca
src/RegExpRouter/Router.php
@@ -90,7 +90,7 @@ public function route($requestURI, array $options = array())
90
$path = parse_url($this->baseURL, PHP_URL_PATH);
91
92
//PHP < 5.4.7 does not parse agnostic URLs. The path is always the entire URL.
93
- if ($path == $this->baseURL && strpos($this->baseURL, '//') === 0) {
+ if ((($path == $this->baseURL) || $path === false) && strpos($this->baseURL, '//') === 0) {
94
$path_start = strpos($this->baseURL, '/', 2);
95
$path = substr($this->baseURL, $path_start);
96
}
0 commit comments