[XPathAbstract] Fix relative links in fetched HTML (#3401)

* [core] Make defaultLinkTo compatible with DOMDocument

* [XPathAbstract] Fix relative links in fetched HTML
This commit is contained in:
mrnoname1000 2023-05-18 06:50:50 -05:00 committed by GitHub
parent ecd717cf58
commit 096c3bca73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View file

@ -387,6 +387,9 @@ abstract class XPathAbstract extends BridgeAbstract
libxml_clear_errors();
libxml_use_internal_errors(false);
// fix relative links
defaultLinkTo($webPageHtml, $this->feedUri);
$xpath = new \DOMXPath($webPageHtml);
$this->feedName = $this->provideFeedTitle($xpath);