Update gettext : add spaces

DomCi : remove line too longs on all the files


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5280 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-05-23 14:19:30 +00:00
parent a79b59685f
commit 17168aaaef
39 changed files with 588 additions and 565 deletions

View File

@@ -67,18 +67,18 @@ class csrf
return TRUE;
if (! isset ($_SESSION["domframework"]["csrf"]["csrf"]))
{
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"No previous CSRF token : abort"), 406);
}
if ($_SESSION["domframework"]["csrf"]["csrf"] !== $tokenFromUser)
{
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"Invalid CSRF token provided"), 406);
}
if (($_SESSION["domframework"]["csrf"]["csrfStart"] + $this->csrfTimeout) <
microtime (TRUE))
{
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"Obsolete CSRF token provided"), 406);
}
return TRUE;