Dupilcated tags shouldn't happen anymore when parsing a webpage.

This commit is contained in:
Michael Vogel 2015-11-28 13:15:00 +01:00
parent 5fe8ae514b
commit 20befee9ed

View File

@ -280,7 +280,8 @@ function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $co
if (isset($keywords)) {
$siteinfo["keywords"] = array();
foreach ($keywords as $keyword)
$siteinfo["keywords"][] = trim($keyword);
if (!in_array(trim($keyword), $siteinfo["keywords"]))
$siteinfo["keywords"][] = trim($keyword);
}
//$list = $xpath->query("head/meta[@property]");