From: Michael Date: Sun, 28 Mar 2021 06:47:58 +0000 (+0000) Subject: ParseUrl: Remove image when it doesn't fit the requirements X-Git-Tag: 2021.04~45^2 X-Git-Url: https://reisub.nsupdate.info/git/?a=commitdiff_plain;h=bb0f3552e21372d0dba87275eb784fb1a9fa8b7b;p=friendica.git%2F.git ParseUrl: Remove image when it doesn't fit the requirements --- diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index ce626b8ed7..0ba0bc2711 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -524,7 +524,11 @@ class ParseUrl $image['contenttype'] = $photodata['mime']; unset($image['url']); ksort($image); + } else { + $image = []; } + } else { + $image = []; } });