瀏覽代碼

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

Duplicated tags shouldn't happen anymore when parsing a webpage.
pull/2116/head
父節點
當前提交
a770be3cb6
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      mod/parse_url.php

+ 2
- 1
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]");


載入中…
取消
儲存