aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_language.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2010-02-17 12:49:05 +0000
committerJoas Schilling <nickvergessen@gmx.de>2010-02-17 12:49:05 +0000
commitc0e9bc51265193fa495c0a6ae8b62273b5e30ec7 (patch)
tree046dc12862dca637f3ef54389b535fef8c9679a0 /phpBB/includes/acp/acp_language.php
parente1ae09a7873817f37ef89b21985fd40822103ecc (diff)
downloadforums-c0e9bc51265193fa495c0a6ae8b62273b5e30ec7.tar
forums-c0e9bc51265193fa495c0a6ae8b62273b5e30ec7.tar.gz
forums-c0e9bc51265193fa495c0a6ae8b62273b5e30ec7.tar.bz2
forums-c0e9bc51265193fa495c0a6ae8b62273b5e30ec7.tar.xz
forums-c0e9bc51265193fa495c0a6ae8b62273b5e30ec7.zip
Bug #57795 - [Fix] Restrict search for language/../iso.txt to folders.
Authorised by: bantu git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10496 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_language.php')
-rw-r--r--phpBB/includes/acp/acp_language.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_language.php b/phpBB/includes/acp/acp_language.php
index 8ca45a27f6..fedae6fe67 100644
--- a/phpBB/includes/acp/acp_language.php
+++ b/phpBB/includes/acp/acp_language.php
@@ -1120,6 +1120,11 @@ class acp_language
{
while (($file = readdir($dp)) !== false)
{
+ if (!is_dir($phpbb_root_path . 'language/' . $file))
+ {
+ continue;
+ }
+
if ($file[0] != '.' && file_exists("{$phpbb_root_path}language/$file/iso.txt"))
{
if (!in_array($file, $installed))