Update Cache.php (#1745)

make sure find resource return valid path.
This commit is contained in:
Wensheng Yan 2017-11-15 20:35:44 -05:00 committed by Andy Miller
parent 31e3c1c295
commit 72f3a01abf

View File

@ -390,6 +390,7 @@ class Cache extends Getters
// Convert stream to a real path
try {
$path = $locator->findResource($stream, true, true);
if($path === false) continue;
$anything = false;
$files = glob($path . '/*');