summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-25 21:29:24 +0100
committerMinteck <contact@minteck.org>2023-01-25 21:29:24 +0100
commit9b2f05228357a34a3c0f2950782835dfeb35086e (patch)
tree5a13df212ad9c22e3af921017950cb6d617d3a37 /includes
parent78003af142c7c851ee14dbafecaa47954e07a8c2 (diff)
downloadpluralconnect-9b2f05228357a34a3c0f2950782835dfeb35086e.tar.gz
pluralconnect-9b2f05228357a34a3c0f2950782835dfeb35086e.tar.bz2
pluralconnect-9b2f05228357a34a3c0f2950782835dfeb35086e.zip
Updated 3 files and added 2 files (automated)
Diffstat (limited to 'includes')
-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;
}