diff options
author | Robin Appelman <robin@icewind.nl> | 2022-10-14 15:50:35 +0300 |
---|---|---|
committer | Vincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com> | 2022-10-21 16:39:07 +0300 |
commit | fb5ff8fbedfe94223047f391b604110b5d4962e4 (patch) | |
tree | ba82f9be5d4e0f31c1047a9dec3bbc74860c0917 | |
parent | 7848d1cab6e0e3a6fb8cd15c4a8cba7147dabab9 (diff) |
fix encryption wrapper filesize for non existing filesencryption-size-not-found
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Encryption.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php index 21db6b7bf9d..7e50c5d1e65 100644 --- a/lib/private/Files/Storage/Wrapper/Encryption.php +++ b/lib/private/Files/Storage/Wrapper/Encryption.php @@ -135,8 +135,10 @@ class Encryption extends Wrapper { public function filesize($path) { $fullPath = $this->getFullPath($path); - /** @var CacheEntry $info */ $info = $this->getCache()->get($path); + if ($info === false) { + return 0; + } if (isset($this->unencryptedSize[$fullPath])) { $size = $this->unencryptedSize[$fullPath]; // update file cache |