diff options
author | thomascube <thomas@roundcube.net> | 2011-03-27 16:23:26 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-03-27 16:23:26 +0000 |
commit | c9f2c470271b83bd8a158de21b8b774b7d46835b (patch) | |
tree | eb2d8fdfe9dd18a209fa834fd7ca781dd1657082 | |
parent | be157c74fbba6697b02ef13c1224dcbc862fe9b6 (diff) |
Fix request token generation if no cookies set
-rw-r--r-- | program/include/rcmail.php | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |