alecpl
2010-10-05 8f94b1aad656ec19c92b7ec7aa7f9e4cd4ac60a0
- Convert to lowercase only domain part of email address on login


1 files modified
5 ■■■■■ changed files
program/include/rcmail.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcmail.php
@@ -687,8 +687,9 @@
    // 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);
    }