Skip to content

Commit dba1b3e

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 373e4cc + 288c972 commit dba1b3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IMAP/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ protected function getAddress() {
443443
if (!$this->validate_cert) {
444444
$address .= '/novalidate-cert';
445445
}
446-
if ($this->encryption == 'ssl') {
447-
$address .= '/ssl';
446+
if (in_array($this->encryption,['tls','ssl'])) {
447+
$address .= '/'.$this->encryption;
448448
}
449449
$address .= '}';
450450

0 commit comments

Comments
 (0)