From b621431c1116bb4166d4a89690bdea3a7a17d08c Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Fri, 2 Mar 2012 15:46:11 +0100
Subject: [PATCH] don't try to seach apps in hidden folders

---
 lib/app.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/app.php b/lib/app.php
index 696b35485b..f841180eba 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -365,7 +365,7 @@ class OC_App{
 		$apps=array();
 		$dh=opendir(OC::$APPSROOT.'/apps');
 		while($file=readdir($dh)){
-			if(is_file(OC::$APPSROOT.'/apps/'.$file.'/appinfo/app.php')){
+			if(substr($file,0,1)!='.' and is_file(OC::$APPSROOT.'/apps/'.$file.'/appinfo/app.php')){
 				$apps[]=$file;
 			}
 		}
-- 
GitLab