From 47117c274223368eef3cf08fe06bc0b72470b13d Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Sun, 1 Jan 2023 12:23:47 +0100 Subject: [PATCH] Fix index.php meta-resolving not working with query-parameters --- BlueMapCommon/webapp/public/_index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlueMapCommon/webapp/public/_index.php b/BlueMapCommon/webapp/public/_index.php index 2fbb42e7..d3a44869 100644 --- a/BlueMapCommon/webapp/public/_index.php +++ b/BlueMapCommon/webapp/public/_index.php @@ -109,7 +109,7 @@ if (startsWith($path, "/maps/")) { // determine map-path $pathParts = explode("/", substr($path, strlen("/maps/")), 2); $mapId = $pathParts[0]; - $mapPath = $pathParts[1]; + $mapPath = explode("?", $pathParts[1], 2)[0]; // get sql-connection $sql = new mysqli($hostname, $username, $password, $database, $port);