Bläddra i källkod

First get parameter is passed with ?, not with &

ahwelp 6 år sedan
förälder
incheckning
9a6c0643db
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/BBRouter/RouteCollection.php

+ 1 - 1
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();
         }