commit | 676d3c820c346192c671dde3d479f16db10734c1 | [log] [tgz] |
---|---|---|
author | Derek Jones <derek.jones@ellislab.com> | Tue Jan 22 17:42:09 2008 +0000 |
committer | Derek Jones <derek.jones@ellislab.com> | Tue Jan 22 17:42:09 2008 +0000 |
tree | ce312be3f3b415a52a607f2e895f21982b778729 | |
parent | ca0e7faf32d2ccf7d048ace616c5f60a3360d0ec [diff] |
Fixed bug #3289 where temp files in directories being tested with is_really_writable() were not being handled properly
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php index a5dc437..5fb31cf 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php
@@ -200,8 +200,10 @@ return FALSE; } + fclose($fp); @chmod($file, 0777); @unlink($file); + return TRUE; } elseif (($fp = @fopen($file, 'ab')) === FALSE) {