diff options
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index 8ea8719ca..203454747 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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; } |