From dfe54057ca7d45477c4088befc6c6fc3dc1eee1f Mon Sep 17 00:00:00 2001 From: ahwelp Date: Mon, 14 Jan 2019 02:23:08 +0000 Subject: [PATCH] Fixing problem no Nginx Nginx will not acept the $_GET['uri'], replacing by $_SERVER['REQUEST_URI'] --- 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 38bd44f..407ec07 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( $_GET['uri'] ) ? '/'. $_GET['uri'] : '/'; + self::$_route_collection->_uri = isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '/'; } self::$_route_collection->define_verb(); }