채택완료

분류관하여 질문드립니다.

 

게시판 분류명에

 

() 괄호 또는 / 가 들어갈 경우 검색?선택?이 안되고 있습니다.

 

이부분은 어디서 해결을 해야하나요??? 

|

답변 2개 / 댓글 2개

채택된 답변
+20 포인트

답변에 대한 댓글 1개

안됩니다. ㅠㅠ

lib > common.lib.php 를 수정해서 아래의 부분을 찾아 아래와 같이해주세요.

 

// 검색어 특수문자 제거
function get_search_string($stx)
{
    $stx_pattern = array();
    $stx_pattern[] = '#\.*/+#';
    $stx_pattern[] = '#\\\*#';
    $stx_pattern[] = '#\.{2,}#';
    $stx_pattern[] = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]+#';

    $stx_replace = array();
    $stx_replace[] = '';
    $stx_replace[] = '';
    $stx_replace[] = '.';
    $stx_replace[] = '';

    $stx = preg_replace($stx_pattern, $stx_replace, $stx);

    return $stx;
}

위의 부분에서

$stx_pattern[] = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]+#';

$stx_pattern[] = '#[/\'\"%=*\#\|\+\&\!\$~\{\}\[\]`;:\?\^\,]+#';
로 수정해주세요. 

답변에 대한 댓글 1개

안됩니다. ㅠㅠ

답변을 작성하려면 로그인이 필요합니다.