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:
commit
373776b8d8
1 changed files with 4 additions and 0 deletions
|
@ -1201,6 +1201,10 @@ class OC_Util {
|
||||||
// creating a test file
|
// creating a test file
|
||||||
$testFile = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $fileName;
|
$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');
|
$fp = @fopen($testFile, 'w');
|
||||||
if (!$fp) {
|
if (!$fp) {
|
||||||
throw new OC\HintException('Can\'t create test file to check for working .htaccess file.',
|
throw new OC\HintException('Can\'t create test file to check for working .htaccess file.',
|
||||||
|
|
Loading…
Reference in a new issue