diff --git a/src/media.cls.php b/src/media.cls.php index 8e41bf3e3..f0b4b7781 100644 --- a/src/media.cls.php +++ b/src/media.cls.php @@ -731,7 +731,11 @@ private function _detect_dimensions($src) $src = 'https:' . $src; } - $sizes = getimagesize($src); + try { + $sizes = getimagesize($src); + } catch (\Exception $e) { + return false; + } if (!empty($sizes[0]) && !empty($sizes[1])) { return $sizes;