From bb0f3552e21372d0dba87275eb784fb1a9fa8b7b Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 28 Mar 2021 06:47:58 +0000 Subject: [PATCH] ParseUrl: Remove image when it doesn't fit the requirements --- src/Util/ParseUrl.php | 4 ++++ 1 file changed, 4 insertions(+) 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 = []; } });