From 0b162e6f09b1df937b3e502a3861b4eedf69a3b7 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 30 Nov 2020 17:11:48 +0100 Subject: [PATCH] Provide isDir parameter from CacheWrapper Was added in #142 for the StorageWrapper Signed-off-by: Morris Jobke --- lib/CacheWrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CacheWrapper.php b/lib/CacheWrapper.php index 19415892..f44e6ef1 100644 --- a/lib/CacheWrapper.php +++ b/lib/CacheWrapper.php @@ -60,7 +60,7 @@ public function __construct(ICache $cache, IStorage $storage, Operation $operati protected function formatCacheEntry($entry) { if (isset($entry['path']) && isset($entry['permissions'])) { try { - $this->operation->checkFileAccess($this->storage, $entry['path']); + $this->operation->checkFileAccess($this->storage, $entry['path'], $entry['mimetype'] === 'httpd/unix-directory'); } catch (ForbiddenException $e) { $entry['permissions'] &= $this->mask; }