diff options
author | Aleksander Machniak <alec@alec.pl> | 2022-11-11 16:11:37 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2022-11-11 16:11:37 +0300 |
commit | c78d998ec335ba3644ca3055c7cb37a32d4fddfa (patch) | |
tree | 4e779980e24efcfdd0c94bb5eb8be56b06b7e6a4 | |
parent | e111f22d507f9fce7b06449e4dce922d9c773dc6 (diff) |
Fix authenticating to Courier IMAP with passwords containing a '~' character (#8772)
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | program/lib/Roundcube/rcube_imap_generic.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 65d5b84b4..2a759a6e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ - Fix bug where multiline data:image URI's in emails were stripped from the message on display (#8613) - Fix fatal error on identity page if Enigma plugin is misconfigured (#8719) - Fix so N property always exists in a vCard export (#8771) +- Fix authenticating to Courier IMAP with passwords containing a '~' character (#8772) ## Release 1.6.0 diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index 92ccbef42..723a5c9ae 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -826,7 +826,7 @@ class rcube_imap_generic return $this->setError(self::ERROR_BAD, "Login disabled by IMAP server"); } - list($code, $response) = $this->execute('LOGIN', [$this->escape($user), $this->escape($password)], + list($code, $response) = $this->execute('LOGIN', [$this->escape($user, true), $this->escape($password, true)], self::COMMAND_CAPABILITY | self::COMMAND_ANONYMIZED); // re-set capabilities list if untagged CAPABILITY response provided |