possible fix for bombarding the server with the htaccess test during setup

This commit is contained in:
Robin Appelman 2012-10-26 18:17:43 +02:00
parent c6177d2629
commit 46e9bf5678
1 changed files with 21 additions and 16 deletions

View File

@ -544,6 +544,11 @@ class OC_Util {
// creating a test file
$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');
@fwrite($fp, $testcontent);
@fclose($fp);