Commit a1828ff0 authored by Pierre Jochem's avatar Pierre Jochem
Browse files

More secure proposal

parent 297e2924
......@@ -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