mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
formats: Fix favicon not found if url contains path
This commit is contained in:
@@ -21,7 +21,8 @@ class MrssFormat extends FormatAbstract {
|
||||
$uri = 'https://github.com/RSS-Bridge/rss-bridge';
|
||||
}
|
||||
|
||||
$icon = $this->xml_encode($uri .'/favicon.ico');
|
||||
$uriparts = parse_url($uri);
|
||||
$icon = $this->xml_encode($uriparts['scheme'] . '://' . $uriparts['host'] .'/favicon.ico');
|
||||
|
||||
$items = '';
|
||||
foreach($this->getItems() as $item) {
|
||||
|
Reference in New Issue
Block a user