1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17189] Check folder permissions before writing

PHPBB3-17189
This commit is contained in:
Derky
2023-09-23 16:38:32 +02:00
parent e1052bd168
commit 3b622bc005
3 changed files with 5 additions and 5 deletions

View File

@@ -161,7 +161,7 @@ function installer_shutdown_function($display_errors)
$cache = new \phpbb\cache\driver\file(__DIR__ . '/../cache/installer');
$filesystem = new \phpbb\filesystem\filesystem();
if (strpos($error['file'], $filesystem->realpath($cache->cache_dir)) !== false)
if (strpos($error['file'], $filesystem->realpath($cache->cache_dir)) !== false && is_writable($cache->cache_dir))
{
$file_age = @filemtime($error['file']);