summaryrefslogtreecommitdiff
path: root/includes/session.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/session.inc')
-rw-r--r--includes/session.inc2
1 files changed, 1 insertions, 1 deletions
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;
}