Skip to content

Commit

Permalink
Update Cache.php (#1745)
Browse files Browse the repository at this point in the history
make sure find resource return valid path.
  • Loading branch information
yanwsh authored and rhukster committed Nov 16, 2017
1 parent 31e3c1c commit 72f3a01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/src/Grav/Common/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ public static function clearCache($remove = 'standard')
// Convert stream to a real path
try {
$path = $locator->findResource($stream, true, true);
if($path === false) continue;

$anything = false;
$files = glob($path . '/*');
Expand Down

0 comments on commit 72f3a01

Please sign in to comment.