Skip to content

Commit

Permalink
fix: drop extension requirement in feed icon url, fix #4416 (#4421)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan authored Jan 25, 2025
1 parent 028acd0 commit 58b3cfb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions formats/MrssFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,8 @@ public function render(): string
$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');
Expand Down

0 comments on commit 58b3cfb

Please sign in to comment.