[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);