From 965346bf5d441cd305378f703e586f1b98da7367 Mon Sep 17 00:00:00 2001 From: horus Date: Wed, 24 Feb 2021 15:32:31 +0100 Subject: bug fix in routing --- public/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'public/index.php') diff --git a/public/index.php b/public/index.php index d8b9517..cbfba57 100644 --- a/public/index.php +++ b/public/index.php @@ -2,7 +2,9 @@ require_once __DIR__ . '/../app.php'; -switch( $_SERVER['REQUEST_URI'] ) { +$url = strtok($_SERVER["REQUEST_URI"], '?'); + +switch( $url ) { case("/"): echo $twig->render('index.html'); -- cgit v1.2.3