aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r--functions/init.inc.php8
1 files changed, 4 insertions, 4 deletions
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy