summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/imap.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index a75362cfc..4aefbb6de 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -56,7 +56,7 @@
optional resposne in iil_Connect()
- trim(chop()) replaced by trim()
- added iil_Escape() with support for " and \ in folder names
-
+ - support \ character in username in iil_C_Login()
********************************************************/
@@ -304,8 +304,7 @@ function iil_C_Authenticate(&$conn, $user, $pass, $encChallenge) {
function iil_C_Login(&$conn, $user, $password) {
- $password = iil_Escape($password);
- fputs($conn->fp, "a001 LOGIN $user \"$password\"\r\n");
+ fputs($conn->fp, 'a001 LOGIN "'.iil_Escape($user).'" "'.iil_Escape($password)."\"\r\n");
do {
$line = iil_ReadReply($conn->fp);