a
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user