From 86dddd43b621fb3a91b8257f4dd534e4a1077809 Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Tue, 29 Jul 2008 12:36:07 +0000 Subject: forgot a few things git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8708 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/download/file.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'phpBB/download') 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 -- cgit v1.2.1