alecpl
2009-09-07 b48d9bf5d412a6f56f3f9ba4bad141ddfe175727
program/include/rcmail.php
@@ -28,7 +28,7 @@
 */
class rcmail
{
  static public $main_tasks = array('mail','settings','addressbook','login','logout');
  static public $main_tasks = array('mail','settings','addressbook','login','logout','dummy');
  
  static private $instance;
  
@@ -481,7 +481,7 @@
    // lowercase username if it's an e-mail address (#1484473)
    if (strpos($username, '@'))
      $username = rc_strtolower($username);
      $username = mb_strtolower($username);
    // user already registered -> overwrite username
    if ($user = rcube_user::query($username, $host))
@@ -879,7 +879,7 @@
    $key = $this->task;
    
    if (!$_SESSION['request_tokens'][$key])
      $_SESSION['request_tokens'][$key] = md5(uniqid($key . rand(), true));
      $_SESSION['request_tokens'][$key] = md5(uniqid($key . mt_rand(), true));
    
    return $_SESSION['request_tokens'][$key];
  }