From 58b3cfb158077db359e1ab53758e06357ed9af5f Mon Sep 17 00:00:00 2001 From: Dag Date: Sat, 25 Jan 2025 17:43:03 +0100 Subject: [PATCH] fix: drop extension requirement in feed icon url, fix #4416 (#4421) --- formats/MrssFormat.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/formats/MrssFormat.php b/formats/MrssFormat.php index f7b11949..4066ec73 100644 --- a/formats/MrssFormat.php +++ b/formats/MrssFormat.php @@ -80,14 +80,8 @@ class MrssFormat extends FormatAbstract $feedUrl = get_current_url(); $linkSelf->setAttribute('href', $feedUrl); } elseif ($feedKey === 'icon') { - $allowedIconExtensions = [ - '.gif', - '.jpg', - '.png', - '.ico', - ]; $icon = $feedValue; - if ($icon && in_array(substr($icon, -4), $allowedIconExtensions)) { + if ($icon) { $feedImage = $document->createElement('image'); $channel->appendChild($feedImage); $iconUrl = $document->createElement('url');