diff options
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 3 |
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 = ''; |
54 | if(!empty($_GET['id'])) | 54 | if(!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 | ||
60 | if(isset($_GET['action']) && $_GET['action'] === 'deconnexion') | 59 | if(isset($_GET['action']) && $_GET['action'] === 'deconnexion') |