summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-04-15 16:07:01 +0000
committerthomascube <thomas@roundcube.net>2011-04-15 16:07:01 +0000
commitef27a6a72375c92850c4ed17fa7476c6fb188d37 (patch)
tree7c8b30d8146c62d0b1f2c5b0cf69b268d3e89c11 /program/include/rcmail.php
parentd1e08fc9058188f4a6f2580d304592e2c92aae85 (diff)
Add hook for request token creation (upon user request)
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index d1e86c6ca..17b82198c 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1108,7 +1108,8 @@ class rcmail
{
$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);
+ $plugin = $this->plugins->exec_hook('request_token', array('value' => md5('RT' . $this->task . $this->config->get('des_key') . $sess_id)));
+ return $plugin['value'];
}