From ae8186a484c1b6ad3c3df49172645c7b9c0a99ff Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 7 Nov 2013 21:06:38 +0000 Subject: i.php better check dir creation git-svn-id: http://piwigo.org/svn/trunk@25385 68402e56-0260-453c-a942-63ccdbb3a9ee --- i.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i.php') diff --git a/i.php b/i.php index 6b1b88193..01cfc9f0a 100644 --- a/i.php +++ b/i.php @@ -49,7 +49,7 @@ function mkgetdir($dir) $umask = umask(0); $mkd = @mkdir($dir, $conf['chmod_value'], true); umask($umask); - if ($mkd==false) + if ($mkd==false && !is_dir($dir) /* retest existence because of potential concurrent i.php with slow file systems*/) { return false; } -- cgit v1.2.3