diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcmail.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 30b79e26a..b6af440b3 100644 --- a/program/include/rcmail.php +++ b/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); } |