From cab875ea0e16e37bc62b60782d0359865fc402e6 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 15 Sep 2003 01:00:44 +0000 Subject: Fix for bug #794853 listing dot-files. --- preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'preferences.php') diff --git a/preferences.php b/preferences.php index d83bf4a..4dd231d 100644 --- a/preferences.php +++ b/preferences.php @@ -167,7 +167,7 @@ if ((!isset($HTTP_COOKIE_VARS['phpicalendar'])) || ($cookie_unset)) { $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path), $cal_filename)); $filelist = array(); while ($file = readdir($dir_handle)) { - if (substr($file, -4) == ".ics") { + if (preg_match("/^[^.].+\.ics$/", $file)) { array_push($filelist, $file); } } -- cgit v1.2.3