diff options
author | alecpl <alec@alec.pl> | 2008-05-31 07:55:20 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-05-31 07:55:20 +0000 |
commit | d1e8e3f5a088c882211475c2af84444b3f074549 (patch) | |
tree | 9b9a5ec3e6d4710a86fe849cf00370c40c3c91e8 | |
parent | 0be1bcbc03abb4257bd108a55ed79129c2a94c99 (diff) |
- Escape \ in login (#1484614)
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | program/lib/imap.inc | 5 |
2 files changed, 3 insertions, 3 deletions
@@ -6,6 +6,7 @@ CHANGELOG RoundCube Webmail - Support for subfolders in default/protected folders (#1484665) - Disallowed delimiter in folder name (#1484803) - Support " and \ in folder names +- Escape \ in login (#1484614) 2008/05/29 (alec) ---------- 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); |