diff --git a/lib/setup.php b/lib/setup.php index afe56126277d4449519e02192aaa94b4d5f979aa..ecdf44b9f970345a4b4d63470c5ccf0767708936 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); } }