Revert "Remove unneeded check if htaccess test file already exists"

This commit is contained in:
Lukas Reschke 2016-01-11 15:37:08 +01:00
parent 3143555256
commit 43dbe1cebf

View file

@ -1201,6 +1201,10 @@ class OC_Util {
// creating a test file
$testFile = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $fileName;
if (file_exists($testFile)) {// already running this test, possible recursive call
return false;
}
$fp = @fopen($testFile, 'w');
if (!$fp) {
throw new OC\HintException('Can\'t create test file to check for working .htaccess file.',