Index: trunk/wb/search/search_modext.php
===================================================================
--- trunk/wb/search/search_modext.php	(revision 770)
+++ trunk/wb/search/search_modext.php	(revision 771)
@@ -296,7 +296,7 @@
 	return true;
 }
 
-// list all files and dirs in $dir (recursive), omits '.' and '..'
+// list all files and dirs in $dir (recursive), omits '.', '..', and hidden files/dirs
 // returns an array of two arrays ($files[] and $dirs[]).
 // usage: list($files,$dirs) = list_files_dirs($directory);
 //        $depth: get subdirs (true/false)
@@ -303,7 +303,7 @@
 function list_files_dirs($dir, $depth=true, $files=array(), $dirs=array()) {
 	$dh=opendir($dir);
 	while(($file = readdir($dh)) !== false) {
-		if($file == '.' || $file == '..') {
+		if($file{0} == '.' || $file == '..') {
 			continue;
 		}
 		if(is_dir($dir.'/'.$file)) {
