From: <jo...@us...> - 2004-01-22 04:39:22
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1:/tmp/cvs-serv6809 Modified Files: calendar_functions.php Log Message: Fixed error that would exclude single-character calendar files. e.g. a.ics or 0.ics. Index: calendar_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/calendar_functions.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** calendar_functions.php 18 Dec 2003 05:46:56 -0000 1.3 --- calendar_functions.php 22 Jan 2004 04:39:19 -0000 1.4 *************** *** 41,45 **** // Make sure this is not a dot file and it ends with .ics, // and that it is not blacklisted. ! if (!preg_match("/^[^.].+\.ics$/i", $file)) continue; $cal_name = substr($file, 0, -4); if (in_array($cal_name, $blacklisted_cals)) continue; --- 41,45 ---- // Make sure this is not a dot file and it ends with .ics, // and that it is not blacklisted. ! if (!preg_match("/^[^.].*\.ics$/i", $file)) continue; $cal_name = substr($file, 0, -4); if (in_array($cal_name, $blacklisted_cals)) continue; |