aboutsummaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-31 11:41:09 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-31 11:41:09 +0200
commit7fa1f8161c6884148bcc5203071223b838174d2b (patch)
tree168c442a1081c53148229eef4a3833b780736bb8 /lib/setup.php
parente4f70d5bbb46ab24f63b062124f5b68bb6c305dd (diff)
downloadnextcloud-server-7fa1f8161c6884148bcc5203071223b838174d2b.tar.gz
nextcloud-server-7fa1f8161c6884148bcc5203071223b838174d2b.zip
do not user directories when navigating to /data. Needs more security.
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/setup.php b/lib/setup.php
index ecdf44b9f97..9bb6e2df513 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -287,6 +287,7 @@ class OC_Setup {
$content = "deny from all\n";
$content.= "IndexIgnore *";
file_put_contents(OC_Config::getValue('datadirectory', $SERVERROOT.'/data').'/.htaccess', $content);
+ file_put_contents(OC_Config::getValue('datadirectory', $SERVERROOT.'/data').'/index.html', '');
}
}