thomascube
2008-09-19 a3f149eb5729ef1ba6d1c05b29fead1058f4c888
program/include/rcmail.php
@@ -728,7 +728,9 @@
      if (!$valid || ($_SERVER['REQUEST_METHOD']!='POST' && $now - $_SESSION['auth_time'] > 300)) {
        $_SESSION['last_auth'] = $_SESSION['auth_time'];
        $_SESSION['auth_time'] = $now;
        setcookie('sessauth', $this->get_auth_hash(session_id(), $now));
        $cookie = session_get_cookie_params();
        setcookie('sessauth', $this->get_auth_hash(session_id(), $now), 0, $cookie['path'],
                  $cookie['domain'], $_SERVER['HTTPS'] && ($_SERVER['HTTPS']!='off'));
      }
    }
    else {
@@ -895,6 +897,9 @@
    if (!$p['task'] || !in_array($p['task'], rcmail::$main_tasks))
      $p['task'] = $this->task;
    $p['_task'] = $p['task'];
    unset($p['task']);
    $url = './';
    $delm = '?';
    foreach (array_reverse($p) as $par => $val)