mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-10 05:54:41 +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:
parent
ecd717cf58
commit
096c3bca73
2 changed files with 10 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue