From 3e17f6ef6983a9f24ca658fd1b9f856d3f09fcd7 Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 25 Jun 2025 02:09:12 +0200 Subject: nettoyage qui n'abime pas les id du genre "n16" --- public/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index 56af032..8d3148c 100644 --- a/public/index.php +++ b/public/index.php @@ -53,8 +53,7 @@ require '../src/controller/post.php'; $id = ''; if(!empty($_GET['id'])) { - $id = (int)$_GET['id']; // (int) évite les injections, pas parfait d'après chatgpt - //$id = Security::quelqueChose($_GET['id']); + $id = htmlspecialchars($_GET['id']); } if(isset($_GET['action']) && $_GET['action'] === 'deconnexion') -- cgit v1.2.3