summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-01-22 18:42:09 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-01-22 18:42:09 +0100
commit676d3c820c346192c671dde3d479f16db10734c1 (patch)
treece312be3f3b415a52a607f2e895f21982b778729
parentca0e7faf32d2ccf7d048ace616c5f60a3360d0ec (diff)
Fixed bug #3289 where temp files in directories being tested with is_really_writable() were not being handled properly
-rw-r--r--system/helpers/file_helper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index a5dc437c2..5fb31cfaa 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -200,8 +200,10 @@ function is_really_writable($file)
return FALSE;
}
+ fclose($fp);
@chmod($file, 0777);
@unlink($file);
+ return TRUE;
}
elseif (($fp = @fopen($file, 'ab')) === FALSE)
{