[ticket/16641] Fix CHMOD validation for config.php - PHP 8

PHPBB3-16641
This commit is contained in:
3D-I 2020-11-25 22:42:23 +01:00
parent 5a55891d06
commit c0511d54fd

View file

@ -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;
}
}