aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-09-08 22:37:19 +0200
committerIgor Wiedler <igor@wiedler.ch>2011-09-08 22:37:19 +0200
commit34bc0427df6d9adf004ab447a1d3af3bc3ebea52 (patch)
tree75210234a59df7b1c273b19e18cd5303407634ed /phpBB/download
parentb21cee731af7571bd138d28ee377ff8d2c02d1ef (diff)
downloadforums-34bc0427df6d9adf004ab447a1d3af3bc3ebea52.tar
forums-34bc0427df6d9adf004ab447a1d3af3bc3ebea52.tar.gz
forums-34bc0427df6d9adf004ab447a1d3af3bc3ebea52.tar.bz2
forums-34bc0427df6d9adf004ab447a1d3af3bc3ebea52.tar.xz
forums-34bc0427df6d9adf004ab447a1d3af3bc3ebea52.zip
[ticket/10359] Fix phpbb_request regression in download/file.php
The phpbb_request object, utf-8 tools and request_var injection are missing. PHPBB3-10359
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index aa49fb8ab5..ec15d36e08 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -44,6 +44,7 @@ if (isset($_GET['avatar']))
require($phpbb_root_path . 'includes/constants.' . $phpEx);
require($phpbb_root_path . 'includes/functions.' . $phpEx);
require($phpbb_root_path . 'includes/functions_download' . '.' . $phpEx);
+ require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
$class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx);
$class_loader->register();
@@ -53,6 +54,7 @@ if (isset($_GET['avatar']))
$cache = $cache_factory->get_service();
$class_loader->set_cache($cache->get_driver());
+ $request = new phpbb_request();
$db = new $sql_db();
// Connect to DB
@@ -62,6 +64,8 @@ if (isset($_GET['avatar']))
}
unset($dbpasswd);
+ request_var('', 0, false, false, $request);
+
// worst-case default
$browser = strtolower($request->header('User-Agent', 'msie 6.0'));