From af90b6976105f44da914d49f551ab80514e836f0 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 5 Feb 2019 09:26:08 +0000 Subject: [PATCH] authentication : if logout url is null, do not crash and redirect to authentication page git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4946 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- authentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentication.php b/authentication.php index 48ee381..62d3bf0 100644 --- a/authentication.php +++ b/authentication.php @@ -98,7 +98,7 @@ class authentication unset ($_SESSION["domframework"]["authentication"]); if ($this->debug) echo "Redirect to authentication page"; if ($this->debug) $this->route->debug = $this->debug; - if ($url === "") + if ($url === "" || $url === null) { $_SESSION["domframework"]["authentication"]["message"] = dgettext("domframework", "You have been logged out");