Merge pull request #21622 from owncloud/revert-21479-fix-broken-state-in-htaccess-test

Revert "Remove unneeded check if htaccess test file already exists"
This commit is contained in:
Thomas Müller 2016-01-11 16:28:44 +01:00
commit 373776b8d8
1 changed files with 4 additions and 0 deletions

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.',