diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2014-09-09 19:49:17 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2014-09-09 19:49:17 +0200 |
| commit | ef61deb132c16270462aae2fe30f7d5b2f751577 (patch) | |
| tree | 8141062ac58d18323208ca9a3bccc8705ae216b0 /phpBB/includes/functions.php | |
| parent | ad8d53af27dfbd30f6e11274dcb790082c8c2c1d (diff) | |
| download | forums-ef61deb132c16270462aae2fe30f7d5b2f751577.tar forums-ef61deb132c16270462aae2fe30f7d5b2f751577.tar.gz forums-ef61deb132c16270462aae2fe30f7d5b2f751577.tar.bz2 forums-ef61deb132c16270462aae2fe30f7d5b2f751577.tar.xz forums-ef61deb132c16270462aae2fe30f7d5b2f751577.zip | |
[ticket/13052] Use request class instead of $_POST and request_var()
PHPBB3-13052
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index f7ee2c44ab..7eca3e7ef6 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2584,15 +2584,15 @@ function add_form_key($form_name) */ function check_form_key($form_name) { - global $config, $user; + global $config, $request, $user; // we enforce a minimum value of half a minute here. $timespan = ($config['form_token_lifetime'] == -1) ? -1 : max(30, $config['form_token_lifetime']); - if (isset($_POST['creation_time']) && isset($_POST['form_token'])) + if ($request->is_set_post('creation_time') && $request->is_set_post('form_token')) { - $creation_time = abs(request_var('creation_time', 0)); - $token = request_var('form_token', ''); + $creation_time = abs($request->variable('creation_time', 0)); + $token = $request->variable('form_token', ''); $diff = time() - $creation_time; |
