mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-08 21:14:40 +02:00
[XPathAbstract] Use baseURI to fix relative links (if available) (#3439)
This commit is contained in:
parent
1e470ef341
commit
54d626d5cd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue