mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 08:54:20 +03:00
[SchweinfurtBuergerinformationenBridge] Don't include images with data URIs as enclosures. (#3811)
See also setEnclosures() in FeedItem.php: URIs with a path are required.
This commit is contained in:
parent
609eed1791
commit
ccc20849ff
1 changed files with 2 additions and 2 deletions
|
@ -107,9 +107,9 @@ class SchweinfurtBuergerinformationenBridge extends BridgeAbstract
|
|||
];
|
||||
|
||||
// Let's see if there are images in the content, and if yes, attach
|
||||
// them as enclosures, but not images which are used for linking to an external site.
|
||||
// them as enclosures, but not images which are used for linking to an external site and data URIs.
|
||||
foreach ($images as $image) {
|
||||
if ($image->class != 'imgextlink') {
|
||||
if ($image->class != 'imgextlink' && parse_url($image->src, PHP_URL_SCHEME) != 'data') {
|
||||
$item['enclosures'][] = $image->src;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue