summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-03-27 16:23:26 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-03-27 16:23:26 +0000
commit88de037aee43312733f3816c9aef753ba5efc7fc (patch)
treecc45efb6ae25f5d2559679e337b0848dc10440c2 /roundcubemail/program
parentd32e29c43fd0d34660e45dddb771c0e22d0d6f34 (diff)
Fix request token generation if no cookies set
git-svn-id: https://svn.roundcube.net/trunk@4622 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/include/rcmail.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index 0fc744605..d1e86c6ca 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/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);
}