Merge pull request #15354 from pierrejochem/patch-1

More secure proposal
This commit is contained in:
Thomas Müller 2015-04-01 14:08:03 +02:00
commit 0af2dc7d37

View file

@ -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);
}
});
}
}