1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-22 11:36:38 +02:00

Merge branch 'master' of git.tt-rss.org:git/tt-rss

This commit is contained in:
Andrew Dolgov 2017-10-06 09:45:28 +03:00
commit 916c1e9b16

View File

@ -575,9 +575,9 @@
$doc->loadHTML($html);
$xpath = new DOMXPath($doc);
$base = $xpath->query('/html/head/base');
$base = $xpath->query('/html/head/base[@href]');
foreach ($base as $b) {
$url = $b->getAttribute("href");
$url = rewrite_relative_url($url, $b->getAttribute("href"));
break;
}