Merge pull request #3590 from rxu/ticket/13814

[ticket/13814] Prevent phpbb_is_writable() method from truncating files
This commit is contained in:
Tristan Darricau 2015-05-04 14:39:36 +02:00
commit 6be8841a57

View file

@ -613,7 +613,7 @@ class filesystem implements filesystem_interface
}
else
{
$handle = @fopen($file, 'w');
$handle = @fopen($file, 'c');
if (is_resource($handle))
{