diff options
author | 2025-01-25 17:43:03 +0100 | |
---|---|---|
committer | 2025-01-25 17:43:03 +0100 | |
commit | 58b3cfb158077db359e1ab53758e06357ed9af5f (patch) | |
tree | 59dbe0630a4f4ecf483cc083e9417bfb5a2af61d | |
parent | 028acd0af1d3b5d9788357ee687c0119395afa20 (diff) | |
download | rss-bridge-58b3cfb158077db359e1ab53758e06357ed9af5f.tar.gz rss-bridge-58b3cfb158077db359e1ab53758e06357ed9af5f.tar.zst rss-bridge-58b3cfb158077db359e1ab53758e06357ed9af5f.zip |
fix: drop extension requirement in feed icon url, fix #4416 (#4421)
-rw-r--r-- | formats/MrssFormat.php | 8 |
1 files changed, 1 insertions, 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'); |