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

do not user directories when navigating to /data. Needs more security.

parent e4f70d5b
No related branches found
No related tags found
No related merge requests found
......@@ -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', '');
}
}
......
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