mirror of
https://github.com/friendica/friendica
synced 2024-12-24 12:40:16 +00:00
Fix getimagesizefromstring() read errors
This commit is contained in:
parent
ca2c316de0
commit
d09ab35816
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue