From a9ff55017b0145071b7796b1379faced838a8a86 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 29 May 2014 09:31:30 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=80=EC=83=89=EC=96=B4=20=ED=8A=B9?= =?UTF-8?q?=EC=88=98=EB=AC=B8=EC=9E=90=20=EC=B2=98=EB=A6=AC=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/search.php | 3 ++- lib/common.lib.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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[] = '';