diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-31 11:41:09 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-31 11:41:09 +0200 |
commit | 7fa1f8161c6884148bcc5203071223b838174d2b (patch) | |
tree | 168c442a1081c53148229eef4a3833b780736bb8 /lib/setup.php | |
parent | e4f70d5bbb46ab24f63b062124f5b68bb6c305dd (diff) | |
download | nextcloud-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.php | 1 |
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', ''); } } |