From 9b2f05228357a34a3c0f2950782835dfeb35086e Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 25 Jan 2023 21:29:24 +0100 Subject: Updated 3 files and added 2 files (automated) --- includes/session.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/session.inc b/includes/session.inc index b440c9c..4e2569c 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -5,7 +5,7 @@ global $isUserLoggedIn; global $_PROFILE; if (isset($_COOKIE['PEH2_SESSION_TOKEN'])) { - if (str_contains($_COOKIE['PEH2_SESSION_TOKEN'], ".") || str_contains($_COOKIE['PEH2_SESSION_TOKEN'], "/")) { + if (str_contains($_COOKIE['PEH2_SESSION_TOKEN'], ".") || str_contains($_COOKIE['PEH2_SESSION_TOKEN'], "/") || trim($_COOKIE["PEH2_SESSION_TOKEN"]) === "") { $isLoggedIn = false; } -- cgit