From fbc27e7e4251f684617598fb698ae6a22ecf0920 Mon Sep 17 00:00:00 2001
From: Jeff Miccolis <jeff@miccolis.net>
Date: Wed, 27 Oct 2010 16:26:19 +0000
Subject: [PATCH] FeedsFileFetcher should ignore hidden files.

---
 plugins/FeedsFileFetcher.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/FeedsFileFetcher.inc b/plugins/FeedsFileFetcher.inc
index ed5f9458..3d7d5fb6 100644
--- a/plugins/FeedsFileFetcher.inc
+++ b/plugins/FeedsFileFetcher.inc
@@ -84,7 +84,7 @@ class FeedsFileFetcher extends FeedsFetcher {
     $files = array();
     if ($items = scandir($dir)) {
       foreach ($items as $item) {
-        if (is_file("$dir/$item")) {
+        if (is_file("$dir/$item") && strpos($item, '.') !== 0) {
           $files[] = "$dir/$item";
         }
       }
-- 
GitLab