Skip to content

Commit

Permalink
Let's try to keep the lid on the jar
Browse files Browse the repository at this point in the history
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8745 89ea8834-ac86-4346-8a33-228a782c2dd0
  • Loading branch information
kellanved committed Aug 13, 2008
1 parent b850bbf commit bf59a74
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions phpBB/download/file.php
Expand Up @@ -15,6 +15,18 @@
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);

if (isset($_SERVER['CONTENT_TYPE']))
{
if ($_SERVER['CONTENT_TYPE'] === 'application/x-java-archive')
{
exit;
}
}
else if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'Java') !== false)
{
exit;
}

if (isset($_GET['avatar']))
{
require($phpbb_root_path . 'config.' . $phpEx);
Expand Down

0 comments on commit bf59a74

Please sign in to comment.