From: <ji...@us...> - 2006-03-20 01:36:02
|
Update of /cvsroot/phpicalendar/phpicalendar/calendars In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1633/phpicalendar/calendars Modified Files: publish.ical.php publish.mozilla.php Log Message: add trailing slashes to calendar_path if needed Index: publish.ical.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/calendars/publish.ical.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** publish.ical.php 30 Aug 2004 21:20:34 -0000 1.2 --- publish.ical.php 20 Mar 2006 01:35:56 -0000 1.3 *************** *** 50,55 **** include('../config.inc.php'); ! // set calendar path, or just use current directory ! $calendar_path = (isset($calendar_path) && $calendar_path != '') ? $calendar_path : ''; // allow/disallow publishing --- 50,58 ---- include('../config.inc.php'); ! // set calendar path, or just use current directory...make sure there's a trailing slash ! if(isset($calendar_path) && $calendar_path != ''){ ! if (substr($calendar_path, -1, 1) !='/') $calendar_path = $calendar_path.'/'; ! }else{ ! $calendar_path = ''; // allow/disallow publishing Index: publish.mozilla.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/calendars/publish.mozilla.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** publish.mozilla.php 19 Aug 2004 22:12:10 -0000 1.1 --- publish.mozilla.php 20 Mar 2006 01:35:56 -0000 1.2 *************** *** 61,66 **** include('../config.inc.php'); ! // set calendar path, or just use current directory ! $calendar_path = (isset($calendar_path) && $calendar_path != '') ? $calendar_path : ''; // allow/disallow publishing --- 61,69 ---- include('../config.inc.php'); ! // set calendar path, or just use current directory...make sure there's a trailing slash ! if(isset($calendar_path) && $calendar_path != ''){ ! if (substr($calendar_path, -1, 1) !='/') $calendar_path = $calendar_path.'/'; ! }else{ ! $calendar_path = ''; // allow/disallow publishing |