diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-11-13 08:54:19 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-11-13 08:54:19 +0100 |
commit | ad85087fccf52ab68899b38b8bab28c0d17b673d (patch) | |
tree | 969f86072527e50b9c525272d44a9445313058ff /core/setup.php | |
parent | ac22cd4ab06f5858fb01cbe5844975f0975ed070 (diff) | |
download | nextcloud-server-ad85087fccf52ab68899b38b8bab28c0d17b673d.tar.gz nextcloud-server-ad85087fccf52ab68899b38b8bab28c0d17b673d.zip |
Use util function to protect datadirectory in setup
Diffstat (limited to 'core/setup.php')
-rw-r--r-- | core/setup.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/setup.php b/core/setup.php index 1c03e3397af..7a5c6d5f3e0 100644 --- a/core/setup.php +++ b/core/setup.php @@ -18,9 +18,8 @@ $hasPostgreSQL = is_callable('pg_connect'); $hasOracle = is_callable('oci_connect'); $datadir = OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data'); -// Test if .htaccess is working -$content = "deny from all"; -file_put_contents(OC::$SERVERROOT.'/data/.htaccess', $content); +// Protect data directory here, so we can test if the protection is working +OC_Setup::protectDataDirectory(); $opts = array( 'hasSQLite' => $hasSQLite, |