mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03: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
Reference in a new issue