diff options
author | wn_ <[email protected]> | 2017-10-01 15:47:31 -0500 |
---|---|---|
committer | wn_ <[email protected]> | 2017-10-01 15:47:31 -0500 |
commit | 701c5a7ee47f1236ffb55a9ebb707c46da2c7b91 (patch) | |
tree | 84110b192e68a57ad152f84351071b5c6ad52435 /include/functions.php | |
parent | 241f69e4db786daac259f1c7641006e1d2e28e2b (diff) |
get_favicon_url: only check base elements with href attribute
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 71a6be2e9..203454747 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; |