aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-09-29 15:39:15 +0200
committerTristan Darricau <github@nicofuma.fr>2014-11-20 20:58:35 +0100
commit998b4baa7197db8ac163cfbab97e1cd2eac761dc (patch)
tree918246ec6e4bad93a868d075fa3d5b7885b18290 /phpBB/download
parent014eed385bf761d9e3f0992835f44f58bf055afd (diff)
downloadforums-998b4baa7197db8ac163cfbab97e1cd2eac761dc.tar
forums-998b4baa7197db8ac163cfbab97e1cd2eac761dc.tar.gz
forums-998b4baa7197db8ac163cfbab97e1cd2eac761dc.tar.bz2
forums-998b4baa7197db8ac163cfbab97e1cd2eac761dc.tar.xz
forums-998b4baa7197db8ac163cfbab97e1cd2eac761dc.zip
[ticket/12620] Fix download/file.php and app.php outside of the root_path
PHPBB3-12620
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 77fb455bc1..4b8309c70e 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -42,6 +42,11 @@ if (isset($_GET['avatar']))
$phpbb_config_php_file = new \phpbb\config_php_file($phpbb_root_path, $phpEx);
extract($phpbb_config_php_file->get_all());
+ if (!defined('PHPBB_ENVIRONMENT'))
+ {
+ @define('PHPBB_ENVIRONMENT', 'production');
+ }
+
if (!defined('PHPBB_INSTALLED') || empty($dbms) || empty($acm_type))
{
exit;