Skip to content

Commit

Permalink
2.0.0 - 필터링된 검색어가 SEO에 들어가지 않게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
open2 committed Oct 5, 2013
1 parent 8931747 commit 6247db8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bbs/visit_insert.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ function convertUrlQuery($query) {
;
}

// 검색어 필터링 (금칙 검색어는 SEO에 넣지 않습니다)
$result3 = sql_fetch(" select count(*) as cnt from $g4[filter_table] where pp_word = '$query' ");
if ($result3['cnt'] > 0)
unset($query);

if ($query) {
$sql = " insert $g4[seo_tag_table] (tag_name, tag_date, count, bo_table, wr_id)
values ('$query', '$g4[time_ymd]', 1, '$bo_table', '$wr_id') ON DUPLICATE KEY update count = count+1 ";
Expand Down

0 comments on commit 6247db8

Please sign in to comment.