From 693d6f404c858331469df82899140f59f59e8a36 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sat, 18 Mar 2006 07:39:01 +0000 Subject: fix bug that doubles URL in subscribe and download URLs --- functions/init.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions/init.inc.php') diff --git a/functions/init.inc.php b/functions/init.inc.php index 3cc3890..58be0ad 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -212,8 +212,8 @@ if (count($local_cals) > 0) { $download_filename = $filename; } elseif ($download_uri != '') { $newurl = eregi_replace("^(http://)", "", $download_uri); - $subscribe_path = 'webcal://'.$newurl.'/'."$cpath/".$filename.'.ics'; - $download_filename = $download_uri.'/'."$cpath/".$filename.'.ics'; + $subscribe_path = 'webcal://'.$newurl.'/'."$cpath/".basename($filename); + $download_filename = $download_uri.'/'."$cpath/".basename($filename); } else { $subscribe_path = "$cpath/"; $download_filename = "$cpath/"; -- cgit v1.2.3