csrf : update message
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5544 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
3
csrf.php
3
csrf.php
@@ -110,7 +110,8 @@ class csrf
|
|||||||
if (! isset ($_SESSION["domframework"]["csrf"]))
|
if (! isset ($_SESSION["domframework"]["csrf"]))
|
||||||
{
|
{
|
||||||
throw new \Exception (dgettext ("domframework",
|
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"]))
|
if (! key_exists ($tokenFromUser, $_SESSION["domframework"]["csrf"]))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user