1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:45:56 +00:00

get_favicon_url: only check base elements with href attribute

This commit is contained in:
wn_
2017-10-01 15:47:31 -05:00
parent 241f69e4db
commit 701c5a7ee4

View File

@@ -575,7 +575,7 @@
$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 = rewrite_relative_url($url, $b->getAttribute("href")); $url = rewrite_relative_url($url, $b->getAttribute("href"));
break; break;