First get parameter is passed with ?, not with &

This commit is contained in:
ahwelp
2019-03-14 00:03:47 +00:00
parent 2d6227824c
commit 9a6c0643db
+1 -1
View File
@@ -27,7 +27,7 @@ class RouteCollection {
if (php_sapi_name() == "cli") { if (php_sapi_name() == "cli") {
self::$_route_collection->_uri = isset($_SERVER['argv'][1]) ? '/' . $_SERVER['argv'][1] : '/'; self::$_route_collection->_uri = isset($_SERVER['argv'][1]) ? '/' . $_SERVER['argv'][1] : '/';
} else { } 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(); self::$_route_collection->define_verb();
} }