From: Geoffrey T. D. <da...@us...> - 2001-11-14 17:42:04
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv2855/lib Modified Files: Tag: release-1_2-branch setupwiki.php Log Message: When loading pages from a directory, ignore file names starting with '.'. (Based on SF patch #480195 by Carsten Klapp.) Index: setupwiki.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/Attic/setupwiki.php,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -r1.3 -r1.3.2.1 *** setupwiki.php 2000/10/22 19:33:35 1.3 --- setupwiki.php 2001/11/14 17:42:01 1.3.2.1 *************** *** 91,95 **** while ($fn = readdir($handle)) { ! if (filetype("$dir/$fn") != 'file') continue; $stat = stat("$dir/$fn"); --- 91,95 ---- while ($fn = readdir($handle)) { ! if ($fn[0] == '.' || filetype("$dir/$fn") != 'file') continue; $stat = stat("$dir/$fn"); |