Skip to content
Snippets Groups Projects
Commit e60dddf5 authored by Thomas Müller's avatar Thomas Müller
Browse files

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

Remove unneeded check if htaccess test file already exists
parents 427dbdab 516a6d74
No related branches found
No related tags found
No related merge requests found
...@@ -1201,10 +1201,6 @@ class OC_Util { ...@@ -1201,10 +1201,6 @@ 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.',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment