Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion classes/ImageFilterIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ private function isImage()
return in_array($type, self::$validTypeConstants, true);
} else {
$imagesize = getimagesize($filePath);

if (empty($imagesize)) {
return false;
}

// Index 2 is one of the IMAGETYPE_XXX constants indicating the
// type of the image
return in_array($imagesize[2], self::$validTypeConstants, true);
Expand Down