[Pkg-owncloud-commits] [owncloud] 64/73: Backport of ad720c4 for oC 4.x
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:09:13 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.0.10
in repository owncloud.
commit c73eb29b6e4acd32914f12afd94122f1ca4647bf
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Tue Oct 30 13:50:36 2012 +0100
Backport of ad720c4 for oC 4.x
Fixes #145
---
lib/util.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/util.php b/lib/util.php
index 26e8579..3c4b313 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list