aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2010-02-17 18:40:22 +0000
committerJoas Schilling <nickvergessen@gmx.de>2010-02-17 18:40:22 +0000
commit0ddc3703869733546e836f68761d1f42498386b4 (patch)
treeaeba016e7ec0d9079669a1166ac5f4ffe2620464 /phpBB/includes
parent6a9e5ea78f3bf418bf9fa617a251d11786a92e60 (diff)
downloadforums-0ddc3703869733546e836f68761d1f42498386b4.tar
forums-0ddc3703869733546e836f68761d1f42498386b4.tar.gz
forums-0ddc3703869733546e836f68761d1f42498386b4.tar.bz2
forums-0ddc3703869733546e836f68761d1f42498386b4.tar.xz
forums-0ddc3703869733546e836f68761d1f42498386b4.zip
Merge r10496 - Bug #57795 - [Fix] Restrict search for language/../iso.txt to folders.
Authorised by: bantu git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_7@10498 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-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))