From: Michael M Slusarz Date: Tue, 2 Dec 2008 04:26:45 +0000 (-0700) Subject: Fix MD5 auth; catch NIL ID responses. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d9897300b41c5e4eaae171f48da631948cc4a47b;p=horde.git Fix MD5 auth; catch NIL ID responses. --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index b1245ae81..d7bb775b6 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -490,7 +490,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base switch ($method) { case 'CRAM-MD5': case 'DIGEST-MD5': - $this->_sendLine('AUTHENTICATE ' . $method); + $ob = $this->_sendLine('AUTHENTICATE ' . $method, array('noparse' => true)); switch ($method) { case 'CRAM-MD5': @@ -627,7 +627,9 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base $d = reset($data); if (is_array($d)) { for ($i = 0, $cnt = count($d); $i < $cnt; $i += 2) { - $this->_temp['id'][$d[$i]] = $d[$i + 1]; + if ($d[$i + 1] != 'NIL') { + $this->_temp['id'][$d[$i]] = $d[$i + 1]; + } } } }