From 20befee9eda5238fbd4691df8ccf88e7d497a2cf Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 28 Nov 2015 13:15:00 +0100 Subject: [PATCH] Dupilcated tags shouldn't happen anymore when parsing a webpage. --- mod/parse_url.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/parse_url.php b/mod/parse_url.php index 97eebb89ab..ef051d9f6b 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -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]");