From: wn_ Date: Sun, 1 Oct 2017 20:47:31 +0000 (-0500) Subject: get_favicon_url: only check base elements with href attribute X-Git-Tag: 17.12~123^2^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=701c5a7ee47f1236ffb55a9ebb707c46da2c7b91;p=tt-rss.git get_favicon_url: only check base elements with href attribute --- diff --git a/include/functions.php b/include/functions.php index 71a6be2e..20345474 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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;