Backport of ad720c4 for oC 4.x

Fixes #145
remotes/origin/stable4
Lukas Reschke 2012-10-30 13:50:36 +07:00
parent b78b9890b1
commit c73eb29b6e
1 changed files with 5 additions and 0 deletions

@ -437,6 +437,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);