Details
-
Bug
-
Status: Closed (View Workflow)
-
Resolution: Fixed
-
3.0.x
-
None
-
PHP Environment:
Database:
Description
Just in case this might matter..
2031 function check_form_key($form_name, $timespan = false, $return_page = '', $trigger = false, $miniumum_time = false)
|
2032 {
|
2033 global $config, $user;
|
2034
|
2035 if ($timespan === false)
|
2036 {
|
2037 $timespan = $config['form_token_lifetime'];
|
2038 }
|
2039 if ($miniumum_time === false)
|
2040 {
|
2041 $miniumum_time = $config['form_token_mintime'];
|
2042 }
|
2043
|
2044 if (isset($_POST['creation_time']) && isset($_POST['form_token']))
|
2045 {
|
2046 $creation_time = abs(request_var('creation_time', 0));
|
2047 $token = request_var('form_token', '');
|
2048
|
2049 $diff = (time() - $creation_time);
|
2050
|
2051 if (($diff >= $miniumum_time) && (($diff <= $timespan) || $timespan == -1))
|