summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Kohl <gitlab@jonaskohl.de>2024-07-26 10:19:32 +0200
committerJonas Kohl <gitlab@jonaskohl.de>2024-07-26 10:19:32 +0200
commit24af4c37a4b022907974f5b9dbfd975a7897eb56 (patch)
tree098a82721d01f041184814cc016a2406c7ccc084
parent59d6c150f7b3562b7e8cb1a0504186c5ad097b0a (diff)
Don't include query string in path
-rw-r--r--dev-server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-server.php b/dev-server.php
index 24969f6..c11af78 100644
--- a/dev-server.php
+++ b/dev-server.php
@@ -42,7 +42,7 @@ function get_mime(string $filename): string {
return $mime;
}
-$name = $_SERVER["REQUEST_URI"];
+$name = strtok($_SERVER["REQUEST_URI"], "?");
$is_static = false;
$name = ltrim($name, "/");