From 37d3b9253ab2ed1b9b76df20465b42df283e2552 Mon Sep 17 00:00:00 2001 From: Wesley Miaw Date: Thu, 22 Jan 2004 04:39:19 +0000 Subject: Fixed error that would exclude single-character calendar files. e.g. a.ics or 0.ics. --- functions/calendar_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions/calendar_functions.php') diff --git a/functions/calendar_functions.php b/functions/calendar_functions.php index 4c2f7a3..56b0fa2 100644 --- a/functions/calendar_functions.php +++ b/functions/calendar_functions.php @@ -40,7 +40,7 @@ function availableCalendars($username, $password, $cal_filename, $admin = false) while (($file = readdir($dir_handle)) != false) { // Make sure this is not a dot file and it ends with .ics, // and that it is not blacklisted. - if (!preg_match("/^[^.].+\.ics$/i", $file)) continue; + if (!preg_match("/^[^.].*\.ics$/i", $file)) continue; $cal_name = substr($file, 0, -4); if (in_array($cal_name, $blacklisted_cals)) continue; -- cgit v1.2.3