From 91b3627236220f1ea0607c7005da20bf074cd095 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 2 Oct 2023 21:45:31 +0200 Subject: [PATCH] [ticket/17189] Check if different way of getting parent path works better PHPBB3-17189 --- phpBB/phpbb/cache/driver/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/cache/driver/file.php b/phpBB/phpbb/cache/driver/file.php index 4190f65342..a07b9a9701 100644 --- a/phpBB/phpbb/cache/driver/file.php +++ b/phpBB/phpbb/cache/driver/file.php @@ -37,7 +37,7 @@ class file extends \phpbb\cache\driver\base $this->cache_dir = !is_null($cache_dir) ? $cache_dir : $phpbb_container->getParameter('core.cache_dir'); $this->filesystem = new \phpbb\filesystem\filesystem(); - if ($this->filesystem->is_writable($this->cache_dir . '/../') && !is_dir($this->cache_dir)) + if ($this->filesystem->is_writable(dirname($this->cache_dir)) && !is_dir($this->cache_dir)) { mkdir($this->cache_dir, 0777, true); }