diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2006-03-18 07:39:01 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2006-03-18 07:39:01 +0000 |
commit | 693d6f404c858331469df82899140f59f59e8a36 (patch) | |
tree | 8d62fcda0fcd6ac3a81c3bb1caff2882722c0970 | |
parent | 3c8e58694011f4b43c31fc151a435ad606733892 (diff) | |
download | phpicalendar-693d6f404c858331469df82899140f59f59e8a36.tar.gz phpicalendar-693d6f404c858331469df82899140f59f59e8a36.tar.bz2 phpicalendar-693d6f404c858331469df82899140f59f59e8a36.zip |
fix bug that doubles URL in subscribe and download URLs
-rw-r--r-- | functions/init.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
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/"; |