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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index d4bcb1f3b0..d1f6316551 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -30,13 +30,13 @@ else if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'
exit;
}
-if (isset($_GET['avatar']))
+if (request::is_set('avatar', request::GET))
{
// worst-case default
$browser = (!empty($_SERVER['HTTP_USER_AGENT'])) ? htmlspecialchars((string) $_SERVER['HTTP_USER_AGENT']) : 'msie 6.0';
$config = cache::obtain_config();
- $filename = $_GET['avatar'];
+ $filename = request::variable('avatar', '', false, request::GET);
$avatar_group = false;
$exit = false;