mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 18:11:47 +02:00
[ticket/16641] Fix CHMOD validation for config.php - PHP 8
PHPBB3-16641
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user