alecpl
2008-11-13 e538b3dc7d740c5a9213ef352437f249be856d3a
program/include/rcmail.php
@@ -289,6 +289,14 @@
    foreach (array('flag_for_deletion','read_when_deleted') as $js_config_var) {
      $this->output->set_env($js_config_var, $this->config->get($js_config_var));
    }
    // set keep-alive/check-recent interval
    if ($keep_alive = $this->config->get('keep_alive')) {
      // be sure that it's less than session lifetime
      if ($session_lifetime = $this->config->get('session_lifetime'))
        $keep_alive = min($keep_alive, $session_lifetime * 60 - 30);
      $this->output->set_env('keep_alive', max(60, $keep_alive));
    }
    if ($framed) {
      $this->comm_path .= '&_framed=1';
@@ -433,7 +441,7 @@
    // lowercase username if it's an e-mail address (#1484473)
    if (strpos($username, '@'))
      $username = strtolower($username);
      $username = rc_strtolower($username);
    // user already registered -> overwrite username
    if ($user = rcube_user::query($username, $host))