mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Lesson learned.
git-svn-id: file:///svn/phpbb/trunk@8199 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -2034,7 +2034,8 @@ function check_form_key($form_name, $timespan = false, $return_page = '', $trigg
|
||||
|
||||
if ($timespan === false)
|
||||
{
|
||||
$timespan = $config['form_token_lifetime'];
|
||||
// we enforce a minimum value of half a minute here.
|
||||
$timespan = max(30, $config['form_token_lifetime']);
|
||||
}
|
||||
if ($minimum_time === false)
|
||||
{
|
||||
|
Reference in New Issue
Block a user