From f3a3c7698824ba1c48a71ae13073eb76c7ee53ff Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 18 Jun 2016 00:45:58 +0100 Subject: [PATCH] better test router --- tests/router.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/router.php b/tests/router.php index 6c00377b..5ba314d1 100644 --- a/tests/router.php +++ b/tests/router.php @@ -18,5 +18,6 @@ if(preg_match('/\.(?:png|jpg|jpeg|gif|css|js|php)(\?.*)?$/', $_SERVER["REQUEST_U // all other requests (use shimmie routing based on URL) $_SERVER["PHP_SELF"] = '/'; -$_GET['q'] = $_SERVER["REQUEST_URI"]; +$_GET['q'] = explode("?", $_SERVER["REQUEST_URI"])[0]; +error_log($_GET['q']); require_once "index.php";