Skip to content

Commit

Permalink
Merge pull request #42 from tlueder/patch-1
Browse files Browse the repository at this point in the history
Added null check for $_GET['loginProvider']
  • Loading branch information
sebkln authored Feb 15, 2023
2 parents b8ab90f + 18249d3 commit f33827d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Services/OAuth2LoginService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit f33827d

Please sign in to comment.