From ef27a6a72375c92850c4ed17fa7476c6fb188d37 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 15 Apr 2011 16:07:01 +0000 Subject: Add hook for request token creation (upon user request) --- program/include/rcmail.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program/include/rcmail.php') 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']; } -- cgit v1.2.3