diff options
author | alecpl <alec@alec.pl> | 2010-10-05 10:17:12 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-10-05 10:17:12 +0000 |
commit | 8f94b1aad656ec19c92b7ec7aa7f9e4cd4ac60a0 (patch) | |
tree | 59a522a6556dcba32e410e06adccfac590ce50b9 /program/include | |
parent | c288f9969e113cb7dbd38bf05167cc8e94e007ff (diff) |
- Convert to lowercase only domain part of email address on login
Diffstat (limited to 'program/include')
-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); } |