Missing closing head tag

This commit is contained in:
Phyks 2014-07-30 23:36:58 +02:00
parent b34c66d08d
commit 3bc81fbafa

View File

@ -48,7 +48,7 @@ function getFavicon($urls) {
} }
foreach($contents['results'] as $url=>$content) { foreach($contents['results'] as $url=>$content) {
$content = substr($content, 0, strpos($content, '</head>')).'</html>'; // We don't need the full page, just the <head> $content = substr($content, 0, strpos($content, '</head>')).'</head></html>'; // We don't need the full page, just the <head>
$html = new DOMDocument(); $html = new DOMDocument();
$html->strictErrorChecking = false; $html->strictErrorChecking = false;