mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13814] Prevent phpbb_is_writable() method from truncating files
phpbb_is_writable() of filesystem class uses 'w' mode to fopen files which causes checked files to be truncated. Use the 'c' mode instead. PHPBB3-13814
This commit is contained in:
parent
6870293a9e
commit
0d2c8b5961
1 changed files with 1 additions and 1 deletions
|
@ -613,7 +613,7 @@ class filesystem implements filesystem_interface
|
|||
}
|
||||
else
|
||||
{
|
||||
$handle = @fopen($file, 'w');
|
||||
$handle = @fopen($file, 'c');
|
||||
|
||||
if (is_resource($handle))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue