summaryrefslogtreecommitdiff
path: root/program/steps/settings
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-11-17 19:33:23 +0000
committeralecpl <alec@alec.pl>2009-11-17 19:33:23 +0000
commit90b1cb2efcc764dbcf84521e8c48e4bbeebceace (patch)
tree165e828af45705881a18b37d1c9f994e106c7cb6 /program/steps/settings
parent251cac292f5cb3698a1c8061cced149880fb1e0b (diff)
- Fix displaying of hidden directories in skins list (#1486301)
- Fix open_basedir restriction error when reading skins list (#1486304)
Diffstat (limited to 'program/steps/settings')
-rw-r--r--program/steps/settings/func.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index fc1755665..a2175b0f0 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -640,8 +640,7 @@ function rcmail_get_skins()
while (($file = readdir($dir)) !== false)
{
$filename = $path.'/'.$file;
- if (is_dir($filename) && is_readable($filename)
- && !in_array($file, array('.', '..', '.svn')))
+ if (!preg_match('/^\./', $file) && is_dir($filename) && is_readable($filename))
$skins[] = $file;
}