From 7fa1f8161c6884148bcc5203071223b838174d2b Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> Date: Wed, 31 Aug 2011 11:41:09 +0200 Subject: [PATCH] do not user directories when navigating to /data. Needs more security. --- lib/setup.php | 1 + 1 file changed, 1 insertion(+) 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', ''); } } -- GitLab