Browse Source

Merge pull request #2107 from annando/1511-duplicated-keywords

Duplicated tags shouldn't happen anymore when parsing a webpage.
tags/3.4.3
Tobias Diekershoff 4 years ago
parent
commit
a770be3cb6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mod/parse_url.php

+ 2
- 1
mod/parse_url.php 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]");

Loading…
Cancel
Save