aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init.inc.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-08-14 06:29:14 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-08-14 06:29:14 +0000
commit64e5a82e3d2f7796c238a6782031eeb9d8093680 (patch)
tree99e0a68fea42c210e59de6ec9c9277fd4a9f7697 /functions/init.inc.php
parentf4e6d9a4ccc056646f7fb69aa7ac2ba601610449 (diff)
downloadphpicalendar-64e5a82e3d2f7796c238a6782031eeb9d8093680.tar.gz
phpicalendar-64e5a82e3d2f7796c238a6782031eeb9d8093680.tar.bz2
phpicalendar-64e5a82e3d2f7796c238a6782031eeb9d8093680.zip
fix problem with jumps when using webcals but allow_webcals is no...append .ics to filename
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r--functions/init.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php
index 7ef2c0d..1a1cdae 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -143,6 +143,8 @@ foreach ($cal_filenames as $cal_filename) {
substr($cal_filename, 0, 8) == 'https://' ||
substr($cal_filename, 0, 9) == 'webcal://')
{
+ #jump sends cal url without .ics extension. Add it if needed.
+ if (substr($cal_filename, -4) != ".ics") $cal_filename .= ".ics";
$web_cals[] = $cal_filename;
}

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