summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-06-25 02:09:12 +0200
committerpolo <ordipolo@gmx.fr>2025-06-25 02:09:12 +0200
commit3e17f6ef6983a9f24ca658fd1b9f856d3f09fcd7 (patch)
tree6207d441a7810d8104989c5ccd92a2bbb77c4bf8
parente30385768e2ff259e384973ec451cff8f3b9ddbb (diff)
downloadcms-3e17f6ef6983a9f24ca658fd1b9f856d3f09fcd7.zip
nettoyage qui n'abime pas les id du genre "n16"
-rw-r--r--public/index.php3
1 files changed, 1 insertions, 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';
53$id = ''; 53$id = '';
54if(!empty($_GET['id'])) 54if(!empty($_GET['id']))
55{ 55{
56 $id = (int)$_GET['id']; // (int) évite les injections, pas parfait d'après chatgpt 56 $id = htmlspecialchars($_GET['id']);
57 //$id = Security::quelqueChose($_GET['id']);
58} 57}
59 58
60if(isset($_GET['action']) && $_GET['action'] === 'deconnexion') 59if(isset($_GET['action']) && $_GET['action'] === 'deconnexion')