CONSISTENCY or something

This commit is contained in:
William 2023-01-02 16:02:26 +00:00
parent 9ec14b6b73
commit 6bb6a8b4aa
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '';