1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 22:00:23 +02:00

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