From c0511d54fdfdb066957cd800a8a22f4839b342a1 Mon Sep 17 00:00:00 2001 From: 3D-I <480857+3D-I@users.noreply.github.com> Date: Wed, 25 Nov 2020 22:42:23 +0100 Subject: [PATCH] [ticket/16641] Fix CHMOD validation for config.php - PHP 8 PHPBB3-16641 --- phpBB/phpbb/filesystem/filesystem.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/phpBB/phpbb/filesystem/filesystem.php b/phpBB/phpbb/filesystem/filesystem.php index 7f44d5f1de..3749d12b48 100644 --- a/phpBB/phpbb/filesystem/filesystem.php +++ b/phpBB/phpbb/filesystem/filesystem.php @@ -613,11 +613,8 @@ class filesystem implements filesystem_interface } else { - $handle = @fopen($file, 'c'); - - if (is_resource($handle)) + if (is_writable($file)) { - fclose($handle); return true; } }