From c9f2c470271b83bd8a158de21b8b774b7d46835b Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 27 Mar 2011 16:23:26 +0000 Subject: [PATCH] Fix request token generation if no cookies set --- program/include/rcmail.php | 1 + 1 file changed, 1 insertion(+) diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 0fc744605..d1e86c6ca 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -1107,6 +1107,7 @@ class rcmail public function get_request_token() { $sess_id = $_COOKIE[ini_get('session.name')]; + if (!$sess_id) $sess_id = session_id(); return md5('RT' . $this->task . $this->config->get('des_key') . $sess_id); }