From: <ji...@us...> - 2006-03-18 07:39:05
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18007/phpicalendar/functions Modified Files: init.inc.php Log Message: fix bug that doubles URL in subscribe and download URLs Index: init.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v retrieving revision 1.89 retrieving revision 1.90 diff -C2 -d -r1.89 -r1.90 *** init.inc.php 18 Mar 2006 01:27:30 -0000 1.89 --- init.inc.php 18 Mar 2006 07:39:01 -0000 1.90 *************** *** 213,218 **** } elseif ($download_uri != '') { $newurl = eregi_replace("^(http://)", "", $download_uri); ! $subscribe_path = 'webcal://'.$newurl.'/'."$cpath/".$filename.'.ics'; ! $download_filename = $download_uri.'/'."$cpath/".$filename.'.ics'; } else { $subscribe_path = "$cpath/"; --- 213,218 ---- } elseif ($download_uri != '') { $newurl = eregi_replace("^(http://)", "", $download_uri); ! $subscribe_path = 'webcal://'.$newurl.'/'."$cpath/".basename($filename); ! $download_filename = $download_uri.'/'."$cpath/".basename($filename); } else { $subscribe_path = "$cpath/"; |