diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-05-04 14:39:36 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-05-04 14:39:36 +0200 |
commit | 6be8841a5732009e28c2362b197e4492c6ea8aa7 (patch) | |
tree | 6723c4f0462331e8c3e6b297713d5f633229d542 | |
parent | 1a42ec64c87e5b67fcb3d8716d9f89e928c365c4 (diff) | |
parent | 0d2c8b5961d461913557795e8d99c0fa0be87448 (diff) | |
download | forums-6be8841a5732009e28c2362b197e4492c6ea8aa7.tar forums-6be8841a5732009e28c2362b197e4492c6ea8aa7.tar.gz forums-6be8841a5732009e28c2362b197e4492c6ea8aa7.tar.bz2 forums-6be8841a5732009e28c2362b197e4492c6ea8aa7.tar.xz forums-6be8841a5732009e28c2362b197e4492c6ea8aa7.zip |
Merge pull request #3590 from rxu/ticket/13814
[ticket/13814] Prevent phpbb_is_writable() method from truncating files
-rw-r--r-- | phpBB/phpbb/filesystem/filesystem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/filesystem/filesystem.php b/phpBB/phpbb/filesystem/filesystem.php index 370dff77e5..2112882d1d 100644 --- a/phpBB/phpbb/filesystem/filesystem.php +++ b/phpBB/phpbb/filesystem/filesystem.php @@ -613,7 +613,7 @@ class filesystem implements filesystem_interface } else { - $handle = @fopen($file, 'w'); + $handle = @fopen($file, 'c'); if (is_resource($handle)) { |