From 90b1cb2efcc764dbcf84521e8c48e4bbeebceace Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 17 Nov 2009 19:33:23 +0000 Subject: - Fix displaying of hidden directories in skins list (#1486301) - Fix open_basedir restriction error when reading skins list (#1486304) --- program/steps/settings/func.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'program/steps/settings') 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; } -- cgit v1.2.3