mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 22:28:22 +01: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);
|
||||
|
||||
// fix relative links
|
||||
defaultLinkTo($webPageHtml, $this->feedUri);
|
||||
defaultLinkTo($webPageHtml, $webPageHtml->baseURI ?? $this->feedUri);
|
||||
|
||||
$xpath = new \DOMXPath($webPageHtml);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user