Skip to content

Commit

Permalink
Merge pull request #229 from BjoKaSH/fix_imap_out_of_bound
Browse files Browse the repository at this point in the history
Fix out-of-bound array access (IMAP)
  • Loading branch information
violoncelloCH authored Apr 2, 2024
2 parents 6186795 + 8fd2a5d commit f143056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IMAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function checkPassword($uid, $password) {
}

$groups = [];
if ($this->groupDomain && $pieces[1]) {
if ((count($pieces) > 1) && $this->groupDomain && $pieces[1]) {
$groups[] = $pieces[1];
}

Expand Down

0 comments on commit f143056

Please sign in to comment.