diff options
author | Pierre Jochem <pierrejochem@msn.com> | 2015-04-01 11:28:53 +0200 |
---|---|---|
committer | Pierre Jochem <pierrejochem@msn.com> | 2015-04-01 11:28:53 +0200 |
commit | a1828ff0349f5a2f9091be72b627f0c149142f1f (patch) | |
tree | 7afa7cf00078f42c388b3d5efaf7b5fe85f8a080 /lib | |
parent | 297e29248df402f76b36164b80722194bbc9b747 (diff) | |
download | nextcloud-server-a1828ff0349f5a2f9091be72b627f0c149142f1f.tar.gz nextcloud-server-a1828ff0349f5a2f9091be72b627f0c149142f1f.zip |
More secure proposal
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/cache/fileglobalgc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/cache/fileglobalgc.php b/lib/private/cache/fileglobalgc.php index 57068736104..0d966282383 100644 --- a/lib/private/cache/fileglobalgc.php +++ b/lib/private/cache/fileglobalgc.php @@ -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); + } }); } } |