diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-05 10:17:12 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-05 10:17:12 +0000 |
| commit | 18a3e3af8d818aecb3651863e131435d9aebaea0 (patch) | |
| tree | c521306431de0017bd3c6f14965b2f5cd1f4598d | |
| parent | 0a67d5863827ac26f0d4e9ef6f53fce1c06f48ee (diff) | |
- Convert to lowercase only domain part of email address on login
git-svn-id: https://svn.roundcube.net/trunk@4040 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 30b79e26a..b6af440b3 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/program/include/rcmail.php @@ -687,8 +687,9 @@ class rcmail // Only rcube_contacts class is using domain names in Unicode $host = idn_to_ascii($host); if (strpos($username, '@')) { - // lowercase username if it's an e-mail address (#1484473) - $username = mb_strtolower($username); + // lowercase domain name + list($local, $domain) = explode('@', $username); + $username = $local . '@' . mb_strtolower($domain); $username = idn_to_ascii($username); } |
