Fix index.php meta-resolving not working with query-parameters

This commit is contained in:
Lukas Rieger (Blue) 2023-01-01 12:23:47 +01:00
parent 493f0c9bec
commit 47117c2742
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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);