FeedExpander: Add PR reference with use case

This commit is contained in:
ORelio 2025-03-20 15:24:59 +01:00
parent c7b5a3f5b3
commit a29d70fb02

View File

@ -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)