diff options
author | Andreas Fischer <bantu@phpbb.com> | 2015-02-04 21:09:54 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2015-02-04 21:09:54 +0100 |
commit | 3267c6a61ad88bf96d6f0159dcb565ded4704e82 (patch) | |
tree | f7bfb53911f454dfa75cb2f00a0e1395dedbe44f /phpBB/download/file.php | |
parent | f9ab676530b862798f3eea6bf53415ca3b0faff8 (diff) | |
parent | 52446c8327426c59da74257885fd09591c9e1fb3 (diff) | |
download | forums-3267c6a61ad88bf96d6f0159dcb565ded4704e82.tar forums-3267c6a61ad88bf96d6f0159dcb565ded4704e82.tar.gz forums-3267c6a61ad88bf96d6f0159dcb565ded4704e82.tar.bz2 forums-3267c6a61ad88bf96d6f0159dcb565ded4704e82.tar.xz forums-3267c6a61ad88bf96d6f0159dcb565ded4704e82.zip |
Merge pull request #3257 from MGaetan89/ticket/13455
[ticket/13455] Change request_var() calls with $request->variable()
* MGaetan89/ticket/13455:
[ticket/13455] Remove `request_var()` references from comments
[ticket/13455] Remove unnecessary calls to `utf8_normalize_nfc()`
[ticket/13455] Update calls to `request_var()`
Diffstat (limited to 'phpBB/download/file.php')
-rw-r--r-- | phpBB/download/file.php | 10 |
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); |