mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:35:57 +00:00
get_favicon_url: only check base elements with href attribute
This commit is contained in:
@@ -575,7 +575,7 @@
|
||||
$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 = rewrite_relative_url($url, $b->getAttribute("href"));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user