Merge branch 'g5'

This commit is contained in:
chicpro
2014-05-29 09:31:56 +09:00
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,8 @@ $text_stx = "";
$srows = 0; $srows = 0;
$stx = strip_tags($stx); $stx = strip_tags($stx);
$stx = preg_replace('/[[:punct:]]/u', '', $stx); // 특수문자 제거 //$stx = preg_replace('/[[:punct:]]/u', '', $stx); // 특수문자 제거
$stx = get_search_string($stx); // 특수문자 제거
if ($stx) { if ($stx) {
$stx = preg_replace('/\//', '\/', trim($stx)); $stx = preg_replace('/\//', '\/', trim($stx));
$sop = strtolower($sop); $sop = strtolower($sop);

View File

@ -2684,7 +2684,7 @@ function get_search_string($stx)
$stx_pattern[] = '#\.*/+#'; $stx_pattern[] = '#\.*/+#';
$stx_pattern[] = '#\\\*#'; $stx_pattern[] = '#\\\*#';
$stx_pattern[] = '#\.{2,}#'; $stx_pattern[] = '#\.{2,}#';
$stx_pattern[] = '#[/\'\"%=*\#\(\)\|\+\-\&\!\$@~\{\}\[\]`;:\?]+#'; $stx_pattern[] = '#[/\'\"%=*\#\(\)\|\+\-\&\!\$@~\{\}\[\]`;:\?\^\,]+#';
$stx_replace = array(); $stx_replace = array();
$stx_replace[] = ''; $stx_replace[] = '';