diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-01 14:08:03 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-01 14:08:03 +0200 |
commit | 0af2dc7d3775f5d40cdfd3fe0cd4325abd6ce40d (patch) | |
tree | 97a257df43688c9f0a40a4f893dc4e4da926ec69 | |
parent | 8ff94f0d15d6028e6cc64d540d48e7c606f016e4 (diff) | |
parent | a1828ff0349f5a2f9091be72b627f0c149142f1f (diff) | |
download | nextcloud-server-0af2dc7d3775f5d40cdfd3fe0cd4325abd6ce40d.tar.gz nextcloud-server-0af2dc7d3775f5d40cdfd3fe0cd4325abd6ce40d.zip |
Merge pull request #15354 from pierrejochem/patch-1
More secure proposal
-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); + } }); } } |