mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-05-05 15:18:36 +02:00
[XPathAbstract] Use baseURI to fix relative links (if available) (#3439)
This commit is contained in:
parent
1e470ef341
commit
54d626d5cd
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user