Remove unneeded check if htaccess test file already exists
* fixes #20199
This commit is contained in:
parent
12b0e9e3bd
commit
516a6d7441
|
@ -1215,10 +1215,6 @@ 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.',
|
||||
|
|
Loading…
Reference in New Issue