First get parameter is passed with ?, not with &
This commit is contained in:
@@ -27,7 +27,7 @@ class RouteCollection {
|
||||
if (php_sapi_name() == "cli") {
|
||||
self::$_route_collection->_uri = isset($_SERVER['argv'][1]) ? '/' . $_SERVER['argv'][1] : '/';
|
||||
} else {
|
||||
self::$_route_collection->_uri = isset($_SERVER['REQUEST_URI']) ? explode('&', $_SERVER['REQUEST_URI'])[0] : '/';
|
||||
self::$_route_collection->_uri = isset($_SERVER['REQUEST_URI']) ? explode('?', $_SERVER['REQUEST_URI'])[0] : '/';
|
||||
}
|
||||
self::$_route_collection->define_verb();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user