diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | functions/ical_parser.php | 1 | ||||
-rw-r--r-- | functions/init.inc.php | 8 |
3 files changed, 5 insertions, 5 deletions
@@ -7,6 +7,7 @@ all who are listed here. PROJECT ADMINS -------------- Chad Little <chad@chadsdomain.com> +Patrick Crowley <patrick@icalshare.com> DEVELOPERS ---------- diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 319bf20..a823674 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -953,7 +953,6 @@ if ($parse_file) { - //If you want to see the values in the arrays, uncomment below. /* print '<pre>'; diff --git a/functions/init.inc.php b/functions/init.inc.php index 2a145ed..669b716 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -103,12 +103,12 @@ if ($is_webcal) { // open directory $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path), $cal_filename)); - // build the array while (false != ($file = readdir($dir_handle))) { - if (preg_match("/^[^.].+\.ics$/", $file)) { - $file = $calendar_path.'/'.$file; - array_push($cal_filelist, $file); + if (preg_match("/^[^.].+\.ics$/", $file) && + !in_array(substr($file, 0, -4), $blacklisted_cals)) { + $file = $calendar_path.'/'.$file; + array_push($cal_filelist, $file); } } // add webcals |