summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcmail.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-05 10:17:12 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-05 10:17:12 +0000
commit18a3e3af8d818aecb3651863e131435d9aebaea0 (patch)
treec521306431de0017bd3c6f14965b2f5cd1f4598d /roundcubemail/program/include/rcmail.php
parent0a67d5863827ac26f0d4e9ef6f53fce1c06f48ee (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
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
-rw-r--r--roundcubemail/program/include/rcmail.php5
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);
}