1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-02 22:57:26 +02:00

[XPathAbstract] Use baseURI to fix relative links (if available) (#3439)

This commit is contained in:
Thomas
2023-06-17 17:53:00 +02:00
committed by GitHub
parent 1e470ef341
commit 54d626d5cd

View File

@@ -388,7 +388,7 @@ abstract class XPathAbstract extends BridgeAbstract
libxml_use_internal_errors(false); libxml_use_internal_errors(false);
// fix relative links // fix relative links
defaultLinkTo($webPageHtml, $this->feedUri); defaultLinkTo($webPageHtml, $webPageHtml->baseURI ?? $this->feedUri);
$xpath = new \DOMXPath($webPageHtml); $xpath = new \DOMXPath($webPageHtml);