From: <cl...@us...> - 2003-09-15 01:00:48
|
Update of /cvsroot/phpicalendar/phpicalendar/rss In directory sc8-pr-cvs1:/tmp/cvs-serv9108/rss Modified Files: index.php Log Message: Fix for bug #794853 listing dot-files. Index: index.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/rss/index.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** index.php 7 Dec 2002 02:27:36 -0000 1.18 --- index.php 15 Sep 2003 01:00:44 -0000 1.19 *************** *** 73,77 **** // build the <option> tags while ($file = readdir($dir_handle)) { ! if (substr($file, -4) == ".ics") { // $cal_filename is the filename of the calendar without .ics --- 73,77 ---- // build the <option> tags while ($file = readdir($dir_handle)) { ! if (preg_match("/^[^.].+\.ics$/", $file)) { // $cal_filename is the filename of the calendar without .ics |