Skip to content

Commit

Permalink
Fix getting IMAP vendor name (#9654)
Browse files Browse the repository at this point in the history
In some cases, the array's keys where upper case, and the previous code
produced a warning and resulted in an empty string, even though the
name was present.
  • Loading branch information
pabzm committed Sep 29, 2024
1 parent a4e50e3 commit 6a7e96c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ public function get_vendor()
$ident = null;
}

$vendor = (string) (!empty($ident) ? $ident['name'] : '');
$vendor = (string) ($ident['name'] ?? $ident['NAME'] ?? '');
$ident = strtolower($vendor . ' ' . $this->conn->data['GREETING']);
$vendors = ['cyrus', 'dovecot', 'uw-imap', 'gimap', 'hmail', 'greenmail'];

Expand Down

0 comments on commit 6a7e96c

Please sign in to comment.