aboutsummaryrefslogtreecommitdiffstats
path: root/functions/calendar_functions.php
diff options
context:
space:
mode:
authorWesley Miaw <josuah@users.sourceforge.net>2004-01-22 04:39:19 +0000
committerWesley Miaw <josuah@users.sourceforge.net>2004-01-22 04:39:19 +0000
commit37d3b9253ab2ed1b9b76df20465b42df283e2552 (patch)
treee29ea6025c9e34b86c38fc1492fc024f867f2162 /functions/calendar_functions.php
parent03fcffc0497fd05d233146049315ec7fc0e7d29d (diff)
downloadphpicalendar-37d3b9253ab2ed1b9b76df20465b42df283e2552.tar.gz
phpicalendar-37d3b9253ab2ed1b9b76df20465b42df283e2552.tar.bz2
phpicalendar-37d3b9253ab2ed1b9b76df20465b42df283e2552.zip
Fixed error that would exclude single-character calendar
files. e.g. a.ics or 0.ics.
Diffstat (limited to 'functions/calendar_functions.php')
-rw-r--r--functions/calendar_functions.php2
1 files changed, 1 insertions, 1 deletions
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;

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