Skip to content

Commit ca78164

Browse files
MAGECLOUD-2521: Fix copy/paste typo with Imap and Pop3
1 parent 3e1a3eb commit ca78164

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/Zend/Mail/Protocol/Imap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function connect($host, $port = null, $ssl = false)
112112
if ($ssl === 'TLS') {
113113
$result = $this->requestAndResponse('STARTTLS');
114114
// TODO: Add STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT in the future when it is supported by PHP
115-
if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT)) {
115+
$result = $result && stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);
116116
if (!$result) {
117117
/**
118118
* @see Zend_Mail_Protocol_Exception

library/Zend/Mail/Protocol/Pop3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function connect($host, $port = null, $ssl = false)
123123
if ($ssl === 'TLS') {
124124
$this->request('STLS');
125125
// TODO: Add STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT in the future when it is supported by PHP
126-
if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT)) {
126+
$result = stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);
127127
if (!$result) {
128128
/**
129129
* @see Zend_Mail_Protocol_Exception

0 commit comments

Comments
 (0)