mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-03 16:19:45 +00:00
parent
028acd0af1
commit
58b3cfb158
@ -80,14 +80,8 @@ class MrssFormat extends FormatAbstract
|
|||||||
$feedUrl = get_current_url();
|
$feedUrl = get_current_url();
|
||||||
$linkSelf->setAttribute('href', $feedUrl);
|
$linkSelf->setAttribute('href', $feedUrl);
|
||||||
} elseif ($feedKey === 'icon') {
|
} elseif ($feedKey === 'icon') {
|
||||||
$allowedIconExtensions = [
|
|
||||||
'.gif',
|
|
||||||
'.jpg',
|
|
||||||
'.png',
|
|
||||||
'.ico',
|
|
||||||
];
|
|
||||||
$icon = $feedValue;
|
$icon = $feedValue;
|
||||||
if ($icon && in_array(substr($icon, -4), $allowedIconExtensions)) {
|
if ($icon) {
|
||||||
$feedImage = $document->createElement('image');
|
$feedImage = $document->createElement('image');
|
||||||
$channel->appendChild($feedImage);
|
$channel->appendChild($feedImage);
|
||||||
$iconUrl = $document->createElement('url');
|
$iconUrl = $document->createElement('url');
|
||||||
|
Loading…
Reference in New Issue
Block a user