Quellcode durchsuchen

First get parameter is passed with ?, not with &

ahwelp vor 6 Jahren
Ursprung
Commit
9a6c0643db
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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();
         }