summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-03-27 16:23:26 +0000
committerthomascube <thomas@roundcube.net>2011-03-27 16:23:26 +0000
commitc9f2c470271b83bd8a158de21b8b774b7d46835b (patch)
treeeb2d8fdfe9dd18a209fa834fd7ca781dd1657082 /program/include
parentbe157c74fbba6697b02ef13c1224dcbc862fe9b6 (diff)
Fix request token generation if no cookies set
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail.php1
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);
}