@ -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;
}