1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 19:24:01 +02:00

[bug/59135] Fix open_basedir issues when accessing styles- and language-management. (Bug #59135)

introduced in r10496 and r10360/r10361
This commit is contained in:
Joas Schilling
2010-03-13 11:37:06 +01:00
parent d9567f121b
commit 4349bec316
3 changed files with 5 additions and 4 deletions

View File

@@ -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))
{