Update of /cvsroot/phpicalendar/phpicalendar
In directory sc8-pr-cvs1:/tmp/cvs-serv9108
Modified Files:
preferences.php
Log Message:
Fix for bug #794853 listing dot-files.
Index: preferences.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/preferences.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** preferences.php 30 Jun 2003 22:46:12 -0000 1.29
--- preferences.php 15 Sep 2003 01:00:44 -0000 1.30
***************
*** 168,172 ****
$filelist = array();
while ($file = readdir($dir_handle)) {
! if (substr($file, -4) == ".ics") {
array_push($filelist, $file);
}
--- 168,172 ----
$filelist = array();
while ($file = readdir($dir_handle)) {
! if (preg_match("/^[^.].+\.ics$/", $file)) {
array_push($filelist, $file);
}
|