summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-31 11:28:18 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-31 11:28:18 +0200
commite4f70d5bbb46ab24f63b062124f5b68bb6c305dd (patch)
treec31efd136859f6e2541838e834f60b94ce7a8491 /lib
parent9411d8bb082344fcabc02eb2afca499cd944e0b2 (diff)
downloadnextcloud-server-e4f70d5bbb46ab24f63b062124f5b68bb6c305dd.tar.gz
nextcloud-server-e4f70d5bbb46ab24f63b062124f5b68bb6c305dd.zip
files not viewable from the outside by adresses anymore
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.php3
1 files changed, 2 insertions, 1 deletions
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);
}
}