diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-09-15 01:00:44 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-09-15 01:00:44 +0000 |
commit | cab875ea0e16e37bc62b60782d0359865fc402e6 (patch) | |
tree | b9dcc57c7b80bff07638afaf628d731caf4af94c /functions/admin_functions.php | |
parent | ea8ebe6a3122e066814a23c5c9d7233a2d48fbf7 (diff) | |
download | phpicalendar-cab875ea0e16e37bc62b60782d0359865fc402e6.tar.gz phpicalendar-cab875ea0e16e37bc62b60782d0359865fc402e6.tar.bz2 phpicalendar-cab875ea0e16e37bc62b60782d0359865fc402e6.zip |
Fix for bug #794853 listing dot-files.
Diffstat (limited to 'functions/admin_functions.php')
-rw-r--r-- | functions/admin_functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/admin_functions.php b/functions/admin_functions.php index 7e7a8a6..325a9dd 100644 --- a/functions/admin_functions.php +++ b/functions/admin_functions.php @@ -294,7 +294,7 @@ function get_calendar_files($calendar_path) { $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path))); $filelist = array(); while ($file = readdir($dir_handle)) { - if (substr($file, -4) == ".ics") { + if (preg_match("/^[^.].+\.ics$/", $file)) { array_push($filelist, $file); } } |