Skip to content

Commit

Permalink
[mms] Workaround broken SASL capability responses from POP3 servers.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Feb 27, 2014
1 parent 36eb2ab commit 3bdd058
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/Imap_Client/lib/Horde/Imap/Client/Socket/Pop3.php
Expand Up @@ -219,7 +219,9 @@ protected function _login()
}

if (empty($this->_init['authmethod'])) {
$auth_mech = ($sasl = $this->queryCapability('SASL'))
/* Sanity checking: at least one server (Dovecot 1.x) may return
* SASL response with no arguments. */
$auth_mech = (($sasl = $this->queryCapability('SASL')) && is_array($sasl))
? $sasl
: array();

Expand Down
2 changes: 2 additions & 0 deletions framework/Imap_Client/package.xml
Expand Up @@ -21,6 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Workaround broken SASL capability responses from POP3 servers.
* [mms] Prevent PHP error when a FETCH call is unsuccessful.
* [mms] Relax type checking on cache driver object.
</notes>
Expand Down Expand Up @@ -2214,6 +2215,7 @@
<date>2014-02-24</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Workaround broken SASL capability responses from POP3 servers.
* [mms] Prevent PHP error when a FETCH call is unsuccessful.
* [mms] Relax type checking on cache driver object.
</notes>
Expand Down

0 comments on commit 3bdd058

Please sign in to comment.