summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-01 14:08:03 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-01 14:08:03 +0200
commit0af2dc7d3775f5d40cdfd3fe0cd4325abd6ce40d (patch)
tree97a257df43688c9f0a40a4f893dc4e4da926ec69
parent8ff94f0d15d6028e6cc64d540d48e7c606f016e4 (diff)
parenta1828ff0349f5a2f9091be72b627f0c149142f1f (diff)
downloadnextcloud-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.php4
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);
+ }
});
}
}