Skip to content

Commit

Permalink
Merge pull request #33059 from nextcloud/backport/33050/stable23
Browse files Browse the repository at this point in the history
[stable23] Check whether entry is of type ICacheEntry in Cache->remove()
  • Loading branch information
tobiasKaminsky authored Jul 1, 2022
2 parents e8e21ad + 7ee01a0 commit 10b5b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ public function inCache($file) {
public function remove($file) {
$entry = $this->get($file);

if ($entry) {
if ($entry instanceof ICacheEntry) {
$query = $this->getQueryBuilder();
$query->delete('filecache')
->whereFileId($entry->getId());
Expand Down

0 comments on commit 10b5b38

Please sign in to comment.