mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-18 15:41:26 +02:00
Merge pull request #3590 from rxu/ticket/13814
[ticket/13814] Prevent phpbb_is_writable() method from truncating files
This commit is contained in:
@@ -613,7 +613,7 @@ class filesystem implements filesystem_interface
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$handle = @fopen($file, 'w');
|
$handle = @fopen($file, 'c');
|
||||||
|
|
||||||
if (is_resource($handle))
|
if (is_resource($handle))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user