mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/16641] Fix CHMOD validation for config.php - PHP 8
PHPBB3-16641
This commit is contained in:
parent
5a55891d06
commit
c0511d54fd
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue