diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2010-03-13 11:37:06 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2010-03-13 11:37:06 +0100 |
commit | 4349bec316e93ed6feac3ad7e56e54b6320aa960 (patch) | |
tree | 89901021a3d981258991f52bb995a01745ebcfcd /phpBB/includes/acp/acp_language.php | |
parent | d9567f121b11d3f5b068b85e7c862c27fc495005 (diff) | |
download | forums-4349bec316e93ed6feac3ad7e56e54b6320aa960.tar forums-4349bec316e93ed6feac3ad7e56e54b6320aa960.tar.gz forums-4349bec316e93ed6feac3ad7e56e54b6320aa960.tar.bz2 forums-4349bec316e93ed6feac3ad7e56e54b6320aa960.tar.xz forums-4349bec316e93ed6feac3ad7e56e54b6320aa960.zip |
[bug/59135] Fix open_basedir issues when accessing styles- and language-management. (Bug #59135)
introduced in r10496 and r10360/r10361
Diffstat (limited to 'phpBB/includes/acp/acp_language.php')
-rw-r--r-- | phpBB/includes/acp/acp_language.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_language.php b/phpBB/includes/acp/acp_language.php index fedae6fe67..c2cb2f9c11 100644 --- a/phpBB/includes/acp/acp_language.php +++ b/phpBB/includes/acp/acp_language.php @@ -1120,12 +1120,12 @@ class acp_language { while (($file = readdir($dp)) !== false) { - if (!is_dir($phpbb_root_path . 'language/' . $file)) + if ($file[0] == '.' || !is_dir($phpbb_root_path . 'language/' . $file)) { continue; } - if ($file[0] != '.' && file_exists("{$phpbb_root_path}language/$file/iso.txt")) + if (file_exists("{$phpbb_root_path}language/$file/iso.txt")) { if (!in_array($file, $installed)) { |