From 4fed843f485f19128315bb24358a44e147d991f0 Mon Sep 17 00:00:00 2001 From: ahwelp Date: Mon, 14 Jan 2019 02:57:54 +0000 Subject: [PATCH] Atualizar 'src/BBRouter/RouteCollection.php' --- 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 407ec07..cbbc731 100755 --- a/src/BBRouter/RouteCollection.php +++ b/src/BBRouter/RouteCollection.php @@ -33,7 +33,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'] ) ? $_SERVER['REQUEST_URI'] : '/'; + self::$_route_collection->_uri = isset( $_SERVER['REQUEST_URI'] ) ? explode('&', $_SERVER['REQUEST_URI'])[0] : '/'; } self::$_route_collection->define_verb(); }