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 @@
+ + +
+ + +
+