summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-09-05 18:59:48 +0200
committerGitHub <noreply@github.com>2023-09-05 18:59:48 +0200
commitf7d890cd6678d05af819ff79873a5ef844fe3101 (patch)
tree842feb6f3dd33b23ad908e78eb9dee5247fba5cc
parent02e009867b9598e746336ed92f67bd991d34fcf1 (diff)
parentfe85d7d05d127f9ca04a39674123ca9da95c0201 (diff)
downloadnextcloud-server-f7d890cd6678d05af819ff79873a5ef844fe3101.tar.gz
nextcloud-server-f7d890cd6678d05af819ff79873a5ef844fe3101.zip
Merge pull request #39726 from nextcloud/backport/39698/stable26
[stable26] Catch more invalid cache source storage paths
-rw-r--r--lib/private/Files/Cache/Cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index b632e913c2c..9e475057a36 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -663,7 +663,7 @@ class Cache implements ICache {
$targetPath = $this->normalize($targetPath);
$sourceData = $sourceCache->get($sourcePath);
- if ($sourceData === false) {
+ if (!$sourceData) {
throw new \Exception('Invalid source storage path: ' . $sourcePath);
}