aboutsummaryrefslogtreecommitdiffstats
path: root/functions/calendar_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-31 11:16:33 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-31 11:16:33 +0000
commit9c2080e8bc15acebacac8ba8c724a904c935f6b8 (patch)
tree072511760f986dac9c58a8ad2cf88d30f79d3c98 /functions/calendar_functions.php
parentcd60de7740306494f2146eb7e4b8e7df406ede64 (diff)
downloadphpicalendar-9c2080e8bc15acebacac8ba8c724a904c935f6b8.tar.gz
phpicalendar-9c2080e8bc15acebacac8ba8c724a904c935f6b8.tar.bz2
phpicalendar-9c2080e8bc15acebacac8ba8c724a904c935f6b8.zip
bump version to 2.31rc2
Diffstat (limited to 'functions/calendar_functions.php')
-rw-r--r--functions/calendar_functions.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/functions/calendar_functions.php b/functions/calendar_functions.php
index 020396f..2362686 100644
--- a/functions/calendar_functions.php
+++ b/functions/calendar_functions.php
@@ -14,7 +14,6 @@
function availableCalendars($username, $password, $cal_filename, $admin = false) {
// Import globals.
global $list_webcals, $blacklisted_cals, $locked_cals, $locked_map, $apache_map, $lang, $_SERVER, $phpiCal_config;
-
// Create the list of available calendars.
$calendars = array();
@@ -29,7 +28,6 @@ function availableCalendars($username, $password, $cal_filename, $admin = false)
if (isset($locked_map["$username:$password"])) {
$unlocked_cals = $locked_map["$username:$password"];
}
-
// Make a local copy of the requested calendars.
if (!is_array($cal_filename))
$cal_filename_local = array($cal_filename);
@@ -101,10 +99,10 @@ function availableCalendars($username, $password, $cal_filename, $admin = false)
}
// Make sure the file is real.
if (!is_file($file)) continue;
- // Make sure the file ends in .ics.
- if (!preg_match("/^.*\.ics$/i", $file)) continue;
+ // Remove any php files.
+ if (preg_match("/^.*\.php$/i", $file)) continue;
// Make sure this is not a blacklisted calendar.
- $cal_name = getCalendarName($file);
+ $cal_name = getCalendarName($file);
if (in_array($cal_name, $blacklisted_cals)) continue;
// If HTTP authenticated, make sure this calendar is available
// to the user.

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