From 6bb6a8b4aa94c2272d7aa737ccaf662d40b2a88e Mon Sep 17 00:00:00 2001 From: William Date: Mon, 2 Jan 2023 16:02:26 +0000 Subject: [PATCH] CONSISTENCY or something --- app/WillySoft/Http/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/WillySoft/Http/Route.php b/app/WillySoft/Http/Route.php index b993d8b..2450e97 100644 --- a/app/WillySoft/Http/Route.php +++ b/app/WillySoft/Http/Route.php @@ -19,7 +19,7 @@ abstract class Route // check if the route matches and add parameters if any $args = []; $request_path = (function() { - $haystack = strtok($_SERVER["REQUEST_URI"], '?'); + $haystack = strtok($_SERVER['REQUEST_URI'], '?'); $needle = dirname($_SERVER['SCRIPT_NAME']); if ($needle === '/') { $needle = '';