mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 05:41:02 +01:00
* eMail/IMAP: fix for failed connection for subsequent connects when using STARTTLS in certain enviroments
the buffering of capabilities triggers connections that STARTTLS to use these capabilities at the wrong time; thus we reset the capability buffered by icServer object
This commit is contained in:
parent
8a2ba83ee2
commit
a6538a5662
@ -556,7 +556,9 @@ class defaultimap extends Net_IMAP
|
||||
$options = $_options;
|
||||
$this->isAdminConnection = false;
|
||||
}
|
||||
|
||||
// the buffering of capabilities triggers connections that STARTTLS to use these capabilities at the wrong time
|
||||
// $this->encryption == 1 -> STARTTLS
|
||||
if ($this->encryption == 1) unset($this->_serverSupportedCapabilities);
|
||||
$this->setStreamContextOptions($this->_getTransportOptions());
|
||||
$this->_timeout = $_timeout;
|
||||
if( PEAR::isError($status = parent::connect($this->_getTransportString(), $this->port, $this->encryption == 1)) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user