From: Hypolite Petovan Date: Sun, 22 Jul 2018 16:38:53 +0000 (-0400) Subject: Fix getimagesizefromstring() read errors X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d09ab35816fa31cec863626746aaa27b33c47fbe;p=friendica.git Fix getimagesizefromstring() read errors --- diff --git a/src/Object/Image.php b/src/Object/Image.php index aafed8f95d..6a71038fad 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -782,6 +782,11 @@ class Image if (is_null($data) || !$data || !is_array($data)) { $img_str = Network::fetchUrl($url, true, $redirects, 4); + + if (!$img_str) { + return false; + } + $filesize = strlen($img_str); try {