diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-08-05 12:17:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 12:17:33 +0200 |
commit | b27a2e9ec5d35caf7e54bc9ceb5d590fd4a9b26d (patch) | |
tree | a7a4b0ffe68cc2200b88bdd3e836d4caa0285deb /lib | |
parent | 38278fc1e5f2f14bef80822ea34a559a276f4b7d (diff) | |
parent | 7b7d1e3c0911639cba4c20eba7d0a8352091643f (diff) | |
download | nextcloud-server-b27a2e9ec5d35caf7e54bc9ceb5d590fd4a9b26d.tar.gz nextcloud-server-b27a2e9ec5d35caf7e54bc9ceb5d590fd4a9b26d.zip |
Merge pull request #39698 from joshtrichards/invalid-source-storage-path-catch
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index 4770e168bfb..287966e4a28 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -668,7 +668,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); } |