diff options
author | Nils Adermann <naderman@naderman.de> | 2012-09-01 17:06:59 +0200 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2012-09-01 17:06:59 +0200 |
commit | 4fde4abe5511d3d5c4ea423ecc40888b9565e580 (patch) | |
tree | 4869b286016cc8207d527d885407c849df780a7a /phpBB/includes/functions.php | |
parent | d866624ea7cbc4ff8e5515f66dbb984cbd565414 (diff) | |
parent | 3bd19077dcd7f842e3b5fc50fcdcd7fa9299ad6b (diff) | |
download | forums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.tar forums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.tar.gz forums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.tar.bz2 forums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.tar.xz forums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[task/functional] Fixed DEBUG_TEST related issues
[task/functional] Allow tests to bypass certain restrictions with DEBUG_TEST
[task/functional] Added posting tests (reply and new topic)
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index ecec1e5e4a..8e19bb1d7d 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2821,7 +2821,7 @@ function check_form_key($form_name, $timespan = false, $return_page = '', $trigg $diff = time() - $creation_time; // If creation_time and the time() now is zero we can assume it was not a human doing this (the check for if ($diff)... - if ($diff && ($diff <= $timespan || $timespan === -1)) + if (defined('DEBUG_TEST') || $diff && ($diff <= $timespan || $timespan === -1)) { $token_sid = ($user->data['user_id'] == ANONYMOUS && !empty($config['form_token_sid_guests'])) ? $user->session_id : ''; $key = sha1($creation_time . $user->data['user_form_salt'] . $form_name . $token_sid); |