From a430b6f5528f4698cefb45edde90bf869f05eeda Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Tue, 21 Mar 2006 09:52:29 +0000 Subject: add year printview, fix misc bugs --- functions/init.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'functions/init.inc.php') diff --git a/functions/init.inc.php b/functions/init.inc.php index d22ba78..7f55713 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -134,6 +134,8 @@ $local_cals = array(); foreach ($cal_filenames as $cal_filename) { // If the calendar identifier begins with a web protocol, this is a web // calendar. + $cal_filename = urldecode($cal_filename); #need to decode for substr statements to identify webcals + $cal_filename = str_replace(' ','%20', $cal_filename); #need to reencode blank spaces for matching with $list_webcals if (substr($cal_filename, 0, 7) == 'http://' || substr($cal_filename, 0, 8) == 'https://' || substr($cal_filename, 0, 9) == 'webcal://') @@ -147,7 +149,7 @@ foreach ($cal_filenames as $cal_filename) { if (in_array($cal_filename, $blacklisted_cals)) { exit(error($lang['l_error_restrictedcal'], $cal_filename)); } - $local_cals[] = str_replace(".ics", '', basename($cal_filename)); + $local_cals[] = urldecode(str_replace(".ics", '', basename($cal_filename))); } } -- cgit v1.2.3