thomascube
2008-09-18 7dfb1fba5001299300736e6b5d95d9400575e3e7
Set the right number of arguments for setcookie()

1 files modified
5 ■■■■■ changed files
program/include/rcmail.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcmail.php
@@ -728,8 +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), '/',
                  $_SERVER['HTTPS'] && ($_SERVER['HTTPS']!='off'));
        $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 {