diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-31 07:55:20 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-31 07:55:20 +0000 |
| commit | 26244958a80496343a2333740fe41b42f1bba9de (patch) | |
| tree | 2d337cc5d1d63de485158035f4a952eaeec76ec9 | |
| parent | 04f0012540a6134e6a83113da818b92c99df6a26 (diff) | |
- Escape \ in login (#1484614)
git-svn-id: https://svn.roundcube.net/trunk@1460 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/CHANGELOG | 1 | ||||
| -rw-r--r-- | roundcubemail/program/lib/imap.inc | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index 16cc1bbc1..d50c83278 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -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/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc index a75362cfc..4aefbb6de 100644 --- a/roundcubemail/program/lib/imap.inc +++ b/roundcubemail/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); |
