A free, self-hostable news aggregator…
Call DOMNode::insertBefore() on the parent of it's $child (#7741)
Sam Edwards5bbd299c7e3d
diff --git a/lib/lib_rss.php b/lib/lib_rss.phpindex 196ab06a4..0786eb949 100644--- a/lib/lib_rss.php+++ b/lib/lib_rss.php@@ -535,7 +535,7 @@ function enforceHtmlBase(string $html, string $href): string {if ($head instanceof DOMElement) {$head->insertBefore($base, $head->firstChild);} else {- $doc->insertBefore($base, $doc->documentElement->firstChild);+ $doc->documentElement->insertBefore($base, $doc->documentElement->firstChild);}}return $doc->saveHTML() ?: $html;