From 9a6c0643db4bffd94faa4f9a34961af4a6bff6e8 Mon Sep 17 00:00:00 2001 From: ahwelp Date: Thu, 14 Mar 2019 00:03:47 +0000 Subject: [PATCH] First get parameter is passed with ?, not with & --- src/BBRouter/RouteCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BBRouter/RouteCollection.php b/src/BBRouter/RouteCollection.php index b7fbd09..b5733c6 100755 --- a/src/BBRouter/RouteCollection.php +++ b/src/BBRouter/RouteCollection.php @@ -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(); }