summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-09-18 18:59:02 +0000
committerthomascube <thomas@roundcube.net>2008-09-18 18:59:02 +0000
commit7dfb1fba5001299300736e6b5d95d9400575e3e7 (patch)
treeb0064e2ac36bd063978146219a1c505f224c5276
parent5d29c39eca1cf0dccb92c41fdcaf3a4b01516557 (diff)
Set the right number of arguments for setcookie()
-rw-r--r--program/include/rcmail.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 589adf58a..ac328ebb7 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -728,8 +728,9 @@ class rcmail
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 {