aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_styles.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2009-12-21 22:29:28 +0000
committerJoas Schilling <nickvergessen@gmx.de>2009-12-21 22:29:28 +0000
commit1261e21eac472d9b523f2db2b2efdca93b7510f7 (patch)
treedfa5498a35cd6e5ed93ceffc49cc2b3820390f0e /phpBB/includes/acp/acp_styles.php
parent64898803af78a1d73be34c1ea85608f7fd293444 (diff)
downloadforums-1261e21eac472d9b523f2db2b2efdca93b7510f7.tar
forums-1261e21eac472d9b523f2db2b2efdca93b7510f7.tar.gz
forums-1261e21eac472d9b523f2db2b2efdca93b7510f7.tar.bz2
forums-1261e21eac472d9b523f2db2b2efdca93b7510f7.tar.xz
forums-1261e21eac472d9b523f2db2b2efdca93b7510f7.zip
Bug #55665 - Restrict search for styles/../style.cfg to folders.
Authorised by: bantu git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10360 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_styles.php')
-rw-r--r--phpBB/includes/acp/acp_styles.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index fbf3eadcb2..faa16570c5 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -643,6 +643,10 @@ parse_css_file = {PARSE_CSS_FILE}
{
while (($file = readdir($dp)) !== false)
{
+ if (!is_dir($file))
+ {
+ continue;
+ }
$subpath = ($mode != 'style') ? "$mode/" : '';
if ($file[0] != '.' && file_exists("{$phpbb_root_path}styles/$file/$subpath$mode.cfg"))
{