diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-18 18:59:02 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-18 18:59:02 +0000 |
| commit | 303eb6ae65c29a9a829154f49a197174a7abba59 (patch) | |
| tree | 4d81cd48671659f558c1de0c719bdf4e8f5b6512 /roundcubemail/program/include | |
| parent | 3e58f052bf99d6ce85db71300a159fe57b7f0793 (diff) | |
Set the right number of arguments for setcookie()
git-svn-id: https://svn.roundcube.net/trunk@1830 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 589adf58a..ac328ebb7 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/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 { |
