From 64e5a82e3d2f7796c238a6782031eeb9d8093680 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Mon, 14 Aug 2006 06:29:14 +0000 Subject: fix problem with jumps when using webcals but allow_webcals is no...append .ics to filename --- functions/init.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'functions/init.inc.php') 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; } -- cgit v1.2.3