From e4f70d5bbb46ab24f63b062124f5b68bb6c305dd Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Date: Wed, 31 Aug 2011 11:28:18 +0200
Subject: [PATCH] files not viewable from the outside by adresses anymore

---
 lib/setup.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/setup.php b/lib/setup.php
index afe56126277..ecdf44b9f97 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -284,7 +284,8 @@ class OC_Setup {
 		$content.= "Options -Indexes\n";
 		@file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it
 
-		$content = "deny from all";
+		$content = "deny from all\n";
+		$content.= "IndexIgnore *";
 		file_put_contents(OC_Config::getValue('datadirectory', $SERVERROOT.'/data').'/.htaccess', $content);
 	}
 }
-- 
GitLab