mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
Merge pull request #15354 from pierrejochem/patch-1
More secure proposal
This commit is contained in:
commit
0af2dc7d37
1 changed files with 3 additions and 1 deletions
4
lib/private/cache/fileglobalgc.php
vendored
4
lib/private/cache/fileglobalgc.php
vendored
|
|
@ -72,7 +72,9 @@ class FileGlobalGC extends Job {
|
|||
}
|
||||
$paths = $this->getExpiredPaths($cacheDir, $now);
|
||||
array_walk($paths, function($file) {
|
||||
unlink($file);
|
||||
if (file_exists($file)) {
|
||||
unlink($file);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue