Skip to content
Snippets Groups Projects
Commit e4f70d5b authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

files not viewable from the outside by adresses anymore

parent 9411d8bb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment