Commit 0af2dc7d authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #15354 from pierrejochem/patch-1

More secure proposal
parents 8ff94f0d a1828ff0
......@@ -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);
}
});
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment