From 18249d3861757a6b1aa3349c21de63e940f527b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCder?= Date: Thu, 9 Feb 2023 22:08:46 +0100 Subject: [PATCH] Added null check for $_GET['loginProvider'] Fixes #41 --- Classes/Services/OAuth2LoginService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Services/OAuth2LoginService.php b/Classes/Services/OAuth2LoginService.php index 5214c8f..cb2d305 100644 --- a/Classes/Services/OAuth2LoginService.php +++ b/Classes/Services/OAuth2LoginService.php @@ -75,7 +75,7 @@ public function initAuth( $this->authenticationInformation['db_groups']['table'] = (($subType = 'getUserBe') ? 'be_groups' : 'fe_groups'); $this->dbUser = $this->authenticationInformation['db_user']; - if (!isset($_SESSION) && $_GET['loginProvider'] === '1529672977') { + if (!isset($_SESSION) && ($_GET['loginProvider'] ?? '') === '1529672977') { @session_start(); } }