aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php23
1 files changed, 11 insertions, 12 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index b0ea17e7fc..73c8f94188 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -75,20 +75,19 @@ if (isset($_GET['avatar']))
}
- if ($exit)
- {
- file_gc();
- }
-
- if (!$filename)
- {
- // no way such an avatar could exist. They are not following the rules, stop the show.
- header("HTTP/1.0 403 Forbidden");
- }
- else
+ if (!$exit)
{
- send_avatar_to_browser(($avatar_group ? 'g' : '') . $filename . '.' . $ext, $browser);
+ if (!$filename)
+ {
+ // no way such an avatar could exist. They are not following the rules, stop the show.
+ header("HTTP/1.0 403 Forbidden");
+ }
+ else
+ {
+ send_avatar_to_browser(($avatar_group ? 'g' : '') . $filename . '.' . $ext, $browser);
+ }
}
+ file_gc();
}
// implicit else: we are not in avatar mode