MAPG-69 fix routing to handle emptry string properly
This commit is contained in:
1 parent
df60efbb8c
commit
87d476065d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -9,7 +9,7 @@ if (($pos = strpos($url, '?')) !== false) {
|
||||
}
|
||||
$url = rawurldecode($url);
|
||||
|
||||
$match = Container::$routeCollection->match($method, explode('/', $url));
|
||||
$match = Container::$routeCollection->match($method, $url == '' ? [] : explode('/', $url));
|
||||
|
||||
if ($match !== null) {
|
||||
list($route, $params) = $match;
|
||||
|
||||
Reference in new issue
Block a user