diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2008-08-13 12:30:40 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2008-08-13 12:30:40 +0000 |
commit | bf59a749c3346ed7341d03946b8ecd0701af9eb8 (patch) | |
tree | 381ef8e3791a0128f85fe39425d297e839a2cc8b /phpBB/download/file.php | |
parent | b850bbf882aef77cfa36cca8b8ae65682c4302bc (diff) | |
download | forums-bf59a749c3346ed7341d03946b8ecd0701af9eb8.tar forums-bf59a749c3346ed7341d03946b8ecd0701af9eb8.tar.gz forums-bf59a749c3346ed7341d03946b8ecd0701af9eb8.tar.bz2 forums-bf59a749c3346ed7341d03946b8ecd0701af9eb8.tar.xz forums-bf59a749c3346ed7341d03946b8ecd0701af9eb8.zip |
Let's try to keep the lid on the jar
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8745 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/download/file.php')
-rw-r--r-- | phpBB/download/file.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 8580debe7e..09677738a5 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -15,6 +15,18 @@ define('IN_PHPBB', true); $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); |