From 27a4b2e8f79865d2cc0aa937b82ad328b07ab484 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 27 Sep 2019 11:11:40 +0000 Subject: [PATCH] csrf : update message git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5544 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- csrf.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csrf.php b/csrf.php index bb34ea6..f19de8f 100644 --- a/csrf.php +++ b/csrf.php @@ -110,7 +110,8 @@ class csrf if (! isset ($_SESSION["domframework"]["csrf"])) { throw new \Exception (dgettext ("domframework", - "No previous CSRF token : abort"), 406); + "No previous CSRF token found in session ". + "(maybe a new session after expiration ?) : abort"), 406); } if (! key_exists ($tokenFromUser, $_SESSION["domframework"]["csrf"])) {