summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap_generic.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-09-09 17:35:19 +0200
committerAleksander Machniak <alec@alec.pl>2012-09-09 17:35:19 +0200
commit4e383e2ec8b4184c0fe74d02cf30fd3a4078128e (patch)
tree2749d2ca4054665b0cd10189144d81684477feb7 /program/include/rcube_imap_generic.php
parent8f66aa06f58ba2c9f99541a191ee4bcaa98500b3 (diff)
Fix PLAIN authentication for some IMAP servers (#1488674)
Diffstat (limited to 'program/include/rcube_imap_generic.php')
-rw-r--r--program/include/rcube_imap_generic.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index c3cfabc3a..25e6fc421 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -530,6 +530,7 @@ class rcube_imap_generic
}
else {
$authc = $user;
+ $user = '';
}
$auth_sasl = Auth_SASL::factory('digestmd5');
$reply = base64_encode($auth_sasl->getResponse($authc, $pass,
@@ -568,6 +569,7 @@ class rcube_imap_generic
}
else {
$authc = $user;
+ $user = '';
}
$reply = base64_encode($user . chr(0) . $authc . chr(0) . $pass);