aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-07-29 12:36:07 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-07-29 12:36:07 +0000
commit86dddd43b621fb3a91b8257f4dd534e4a1077809 (patch)
tree64d998a756a8313574609ebf562f26766f1b3ab4 /phpBB/download
parent7997796789d7bad2acd68eb56f9728ae518bfe36 (diff)
downloadforums-86dddd43b621fb3a91b8257f4dd534e4a1077809.tar
forums-86dddd43b621fb3a91b8257f4dd534e4a1077809.tar.gz
forums-86dddd43b621fb3a91b8257f4dd534e4a1077809.tar.bz2
forums-86dddd43b621fb3a91b8257f4dd534e4a1077809.tar.xz
forums-86dddd43b621fb3a91b8257f4dd534e4a1077809.zip
forgot a few things
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8708 89ea8834-ac86-4346-8a33-228a782c2dd0
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