possible fix for bombarding the server with the htaccess test during setup
This commit is contained in:
parent
f477fda785
commit
ad720c4c17
|
@ -582,6 +582,11 @@ class OC_Util {
|
||||||
|
|
||||||
// creating a test file
|
// creating a test file
|
||||||
$testfile = OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ).'/'.$filename;
|
$testfile = OC_Config::getValue( "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');
|
||||||
@fwrite($fp, $testcontent);
|
@fwrite($fp, $testcontent);
|
||||||
@fclose($fp);
|
@fclose($fp);
|
||||||
|
|
Loading…
Reference in New Issue