From 36934552bec0b5c1178b3a89e5a4e03339395575 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 18 Apr 2026 23:26:32 +0000 Subject: [PATCH] a --- Controleur/ControleurRecherche.php | 4 +--- Vue/gabarit.php | 7 +++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Controleur/ControleurRecherche.php b/Controleur/ControleurRecherche.php index 66430cad..50d708b3 100755 --- a/Controleur/ControleurRecherche.php +++ b/Controleur/ControleurRecherche.php @@ -61,11 +61,9 @@ class ControleurRecherche extends Controleur { */ if (!Csrf::validateToken($csrf_token)) { - http_response_code(403); - exit('Accès interdit.'); - // Distinguer expiration et tentative malveillante $_SESSION['flash_error'] = 'Votre session a expiré. Veuillez réessayer.'; + header('Location: ' . $_SERVER['HTTP_REFERER']); exit; } diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 642da1d7..84b1450a 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -633,6 +633,13 @@
+ + +
+ + +
+