mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-04 16:49:35 +00:00
FeedExpander: Add PR reference with use case
This commit is contained in:
parent
c7b5a3f5b3
commit
a29d70fb02
@ -68,7 +68,7 @@ abstract class FeedExpander extends BridgeAbstract
|
||||
];
|
||||
$xmlString = str_replace($problematicStrings, '', $xmlString);
|
||||
|
||||
// Remove extra content at the end of the document, if any.
|
||||
// Remove extra content at the end of the document, if any (#4485)
|
||||
// First retrieve tag name of root node, which is the first node following <?xml prolog,
|
||||
// Then find the last matching </tag> in xml string and strip anything beyond that.
|
||||
if (preg_match('/(?:<\?xml[^>]*\?>[^<]*<)([^ "\'>]+)/i', $xmlString, $matches) === 1)
|
||||
|
Loading…
Reference in New Issue
Block a user