Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:outl1ne/nova-media-field
Browse files Browse the repository at this point in the history
  • Loading branch information
KasparRosin committed Oct 31, 2022
2 parents d23b28b + dbb46c7 commit cd6b41c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Classes/MediaHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ public function createFromUrl($fileUrl, $options = ['timeout_in_sec' => 60]): ?M
public function isReadableImage($file): bool
{
try {
return exif_imagetype($file);
$type = exif_imagetype($file);

// https://github.com/Intervention/image/pull/1008
return !in_array($type, [IMAGETYPE_ICO]);
} catch (Exception $e) {
return false;
}
Expand Down

0 comments on commit cd6b41c

Please sign in to comment.