mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:05:56 +00:00
Merge branch 'relative_html_base' of wn/tt-rss into master
This commit is contained in:
@@ -575,9 +575,9 @@
|
|||||||
$doc->loadHTML($html);
|
$doc->loadHTML($html);
|
||||||
$xpath = new DOMXPath($doc);
|
$xpath = new DOMXPath($doc);
|
||||||
|
|
||||||
$base = $xpath->query('/html/head/base');
|
$base = $xpath->query('/html/head/base[@href]');
|
||||||
foreach ($base as $b) {
|
foreach ($base as $b) {
|
||||||
$url = $b->getAttribute("href");
|
$url = rewrite_relative_url($url, $b->getAttribute("href"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user