Fix getimagesizefromstring() read errors
This commit is contained in:
parent
ca2c316de0
commit
d09ab35816
|
@ -782,6 +782,11 @@ class Image
|
||||||
|
|
||||||
if (is_null($data) || !$data || !is_array($data)) {
|
if (is_null($data) || !$data || !is_array($data)) {
|
||||||
$img_str = Network::fetchUrl($url, true, $redirects, 4);
|
$img_str = Network::fetchUrl($url, true, $redirects, 4);
|
||||||
|
|
||||||
|
if (!$img_str) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$filesize = strlen($img_str);
|
$filesize = strlen($img_str);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user