summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-05 10:17:12 +0000
committeralecpl <alec@alec.pl>2010-10-05 10:17:12 +0000
commit8f94b1aad656ec19c92b7ec7aa7f9e4cd4ac60a0 (patch)
tree59a522a6556dcba32e410e06adccfac590ce50b9 /program
parentc288f9969e113cb7dbd38bf05167cc8e94e007ff (diff)
- Convert to lowercase only domain part of email address on login
Diffstat (limited to 'program')
-rw-r--r--program/include/rcmail.php5
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);
}