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

remotes/origin/stable
Jan-Christoph Borchardt 14 years ago
parent e4f70d5bbb
commit 7fa1f8161c
  1. 1
      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', '');
}
}

Loading…
Cancel
Save