diff --git a/bbs/search.php b/bbs/search.php index bf156e801..f65c965fe 100644 --- a/bbs/search.php +++ b/bbs/search.php @@ -11,7 +11,8 @@ $text_stx = ""; $srows = 0; $stx = strip_tags($stx); -$stx = preg_replace('/[[:punct:]]/u', '', $stx); // 특수문자 제거 +//$stx = preg_replace('/[[:punct:]]/u', '', $stx); // 특수문자 제거 +$stx = get_search_string($stx); // 특수문자 제거 if ($stx) { $stx = preg_replace('/\//', '\/', trim($stx)); $sop = strtolower($sop); diff --git a/lib/common.lib.php b/lib/common.lib.php index 62f80e08f..02860e0a5 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2669,7 +2669,7 @@ function get_search_string($stx) $stx_pattern[] = '#\.*/+#'; $stx_pattern[] = '#\\\*#'; $stx_pattern[] = '#\.{2,}#'; - $stx_pattern[] = '#[/\'\"%=*\#\(\)\|\+\-\&\!\$@~\{\}\[\]`;:\?]+#'; + $stx_pattern[] = '#[/\'\"%=*\#\(\)\|\+\-\&\!\$@~\{\}\[\]`;:\?\^\,]+#'; $stx_replace = array(); $stx_replace[] = '';