diff options
| author | horus | 2021-02-24 15:32:31 +0100 |
|---|---|---|
| committer | horus | 2021-02-24 15:32:31 +0100 |
| commit | 965346bf5d441cd305378f703e586f1b98da7367 (patch) | |
| tree | afa5cbada42d20ff16fa7db5d75de253549f90cd /public/index.php | |
| parent | e4149f7c536199575a1e6b2b8b54eec1c3c1160c (diff) | |
| download | moehring-965346bf5d441cd305378f703e586f1b98da7367.tar.gz | |
bug fix in routing
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 4 |
1 files changed, 3 insertions, 1 deletions
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'); |
