mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Lesson learned.
git-svn-id: file:///svn/phpbb/trunk@8199 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
aee82d3a30
commit
fe66d104a6
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue