From 606228bc7614105125d0e65b4187d5e436facf76 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Tue, 29 Apr 2014 16:50:43 +0200 Subject: [PATCH] fix --- src/Intervention/Image/ImageServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intervention/Image/ImageServiceProvider.php b/src/Intervention/Image/ImageServiceProvider.php index fe0ef599..c8fded51 100644 --- a/src/Intervention/Image/ImageServiceProvider.php +++ b/src/Intervention/Image/ImageServiceProvider.php @@ -57,7 +57,7 @@ class ImageServiceProvider extends ServiceProvider // find file foreach ($config['paths'] as $path) { $image_path = $path.'/'.$filename; - if (file_exists($image_path)) { + if (file_exists($image_path) && is_file($image_path)) { break; } else { $image_path = false;