aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download/file.php')
-rw-r--r--phpBB/download/file.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 26a76d8438..235dd3c95c 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -88,8 +88,6 @@ if (isset($_GET['avatar']))
unset($dbpasswd);
- request_var('', 0, false, false, $request);
-
/* @var $config \phpbb\config\config */
$config = $phpbb_container->get('config');
@@ -103,7 +101,7 @@ if (isset($_GET['avatar']))
/* @var $phpbb_avatar_manager \phpbb\avatar\manager */
$phpbb_avatar_manager = $phpbb_container->get('avatar.manager');
- $filename = request_var('avatar', '');
+ $filename = $request->variable('avatar', '');
$avatar_group = false;
$exit = false;
@@ -154,9 +152,9 @@ if (isset($_GET['avatar']))
include($phpbb_root_path . 'common.' . $phpEx);
require($phpbb_root_path . 'includes/functions_download' . '.' . $phpEx);
-$attach_id = request_var('id', 0);
-$mode = request_var('mode', '');
-$thumbnail = request_var('t', false);
+$attach_id = $request->variable('id', 0);
+$mode = $request->variable('mode', '');
+$thumbnail = $request->variable('t', false);
// Start session management, do not update session page.
$user->session_begin(false);