]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use util function to protect datadirectory in setup
authorBart Visscher <bartv@thisnet.nl>
Tue, 13 Nov 2012 07:54:19 +0000 (08:54 +0100)
committerBart Visscher <bartv@thisnet.nl>
Tue, 13 Nov 2012 07:54:19 +0000 (08:54 +0100)
core/setup.php

index 1c03e3397aff29cd356da67f3d2e032a22bb7b8c..7a5c6d5f3e041034ec6169cd7ef85d0e39ddb335 100644 (file)
@@ -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,