From e6be7a7043494be962bbe5e82538af309e551a2e Mon Sep 17 00:00:00 2001 From: John Kasper Svergja Date: Sun, 12 Mar 2023 15:24:56 +0100 Subject: [PATCH] Support '&' in url parameter for show_map.php Solves #28 --- src/show_map.controller.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/show_map.controller.php b/src/show_map.controller.php index df223d5..e2a4377 100644 --- a/src/show_map.controller.php +++ b/src/show_map.controller.php @@ -16,7 +16,9 @@ public function Execute() // the requested map $map = new Map(); - $map->Load($_GET["map"]); + //Solves https://github.com/matstroeng/doma/issues/28 + $map_id = $_GET["map"] ?: $_GET["amp;map"]; + $map->Load($map_id); if(!$map->ID) die("The map has been removed.");