diff --git a/index.php b/index.php index 021a5a0..f4c8528 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,8 @@ $id = filter_input(INPUT_GET, 'grille', FILTER_VALIDATE_REGEXP, [ ] ]); if (!$id) { - header("Location: " . $_SERVER['PHP_SELF'] . "?grille=" . uniqid() . "&" . http_build_query($_GET)); + $_GET["grille"] = uniqid(); + header("Location: " . $_SERVER['PHP_SELF'] . "?" . http_build_query($_GET)); exit; } @@ -78,7 +79,10 @@ $grille = new Grille($hauteur, $largeur, $id); -