ParseUrl: Remove image when it doesn't fit the requirements
authorMichael <heluecht@pirati.ca>
Sun, 28 Mar 2021 06:47:58 +0000 (06:47 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 28 Mar 2021 06:47:58 +0000 (06:47 +0000)
src/Util/ParseUrl.php

index ce626b8..0ba0bc2 100644 (file)
@@ -524,7 +524,11 @@ class ParseUrl
                                                $image['contenttype'] = $photodata['mime'];
                                                unset($image['url']);
                                                ksort($image);
+                                       } else {
+                                               $image = [];
                                        }
+                               } else {
+                                       $image = [];
                                }
                        });