aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-10-16 22:11:32 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-10-16 22:11:32 +0000
commitfe66d104a6d89ccfc2185ccd078d9b14842e0d32 (patch)
tree9b160c8afe5bfc559f9be13d5d1cc604d14e7945
parentaee82d3a308b8df995b4418dcbdd15b409878542 (diff)
downloadforums-fe66d104a6d89ccfc2185ccd078d9b14842e0d32.tar
forums-fe66d104a6d89ccfc2185ccd078d9b14842e0d32.tar.gz
forums-fe66d104a6d89ccfc2185ccd078d9b14842e0d32.tar.bz2
forums-fe66d104a6d89ccfc2185ccd078d9b14842e0d32.tar.xz
forums-fe66d104a6d89ccfc2185ccd078d9b14842e0d32.zip
Lesson learned.
git-svn-id: file:///svn/phpbb/trunk@8199 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index ab27b62656..f55a5b4d39 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -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)
{