diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2008-04-02 08:52:49 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-04-02 08:52:49 +0000 |
| commit | c5081a685ee9321db57c28a381e034241a13093e (patch) | |
| tree | bd5aafa24aeec9b952775ed12b3c92629ee04489 | |
| parent | 2deee69e2f9ecd239e59bf651e73c6780227c824 (diff) | |
| download | forums-c5081a685ee9321db57c28a381e034241a13093e.tar forums-c5081a685ee9321db57c28a381e034241a13093e.tar.gz forums-c5081a685ee9321db57c28a381e034241a13093e.tar.bz2 forums-c5081a685ee9321db57c28a381e034241a13093e.tar.xz forums-c5081a685ee9321db57c28a381e034241a13093e.zip | |
#s24575
git-svn-id: file:///svn/phpbb/trunk@8487 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
| -rw-r--r-- | phpBB/style.php | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index e44e7781b2..220a7ad5ed 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -145,6 +145,7 @@ <li>[Fix] Correctly obtain to be ignored users within topic/forum notification (Bug #21795 - patch provided by dr.death)</li> <li>[Fix] Correctly update board statistics for attaching orphaned files to existing posts (Bug #20185)</li> + <li>[Sec] Check for non-empty config.php within style.php (Report #s24575) - reported by bantu</li> </ul> </ul> diff --git a/phpBB/style.php b/phpBB/style.php index c0f8ed7352..6d5705a074 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -21,6 +21,11 @@ date_default_timezone_set('UTC'); require($phpbb_root_path . 'config.' . $phpEx); +if (!defined('PHPBB_INSTALLED') || empty($dbms) || !isset($dbhost) || !isset($dbpasswd) || empty($dbuser)) +{ + exit; +} + if (version_compare(PHP_VERSION, '6.0.0-dev', '<')) { set_magic_quotes_runtime(0); |
