Fix getimagesizefromstring() read errors

This commit is contained in:
Hypolite Petovan 2018-07-22 12:38:53 -04:00
parent ca2c316de0
commit d09ab35816

View file

@ -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 {