diff options
author | thomascube <thomas@roundcube.net> | 2006-11-22 11:56:22 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-11-22 11:56:22 +0000 |
commit | 0a020cac3e62bdcb6d3912ab696d87517c871029 (patch) | |
tree | 8f5440aba65d9f645c001ded2b3afc9669b9033d /program/lib | |
parent | d04d202234b0ba1e65b1c581acf0cbe715120dd7 (diff) |
Added host auto-selection and correct password encoding for IMAP login
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/imap.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc index caa1d2721..6bc47a198 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -39,6 +39,7 @@ - Added BCC and REFERENCE to the list of headers to fetch in iil_C_FetchHeaders() - Leave messageID unchanged in iil_C_FetchHeaders() - Avoid stripslahes in iil_Connect() + - Escape quotes and backslashes in iil_C_Login() - Added patch to iil_SortHeaders() by Richard Green - Removed <br> from error messages (better for logging) - Added patch to iil_C_Sort() enabling UID SORT commands @@ -225,8 +226,9 @@ function iil_C_Authenticate(&$conn, $user, $pass, $encChallenge){ function iil_C_Login(&$conn, $user, $password){ + $password = strtr($password, array('"'=>'\\"', '\\' => '\\\\')); fputs($conn->fp, "a001 LOGIN $user \"$password\"\r\n"); - + do{ $line = iil_ReadReply($conn->fp); }while(!iil_StartsWith($line, "a001 ")); |