게시판분류에서 '팅' 글자를 인식하지 못하여 패턴을 쌍따옴표로 수정

This commit is contained in:
kagla
2022-05-03 12:10:02 +09:00
parent b97565e387
commit e2e06d4a23

View File

@ -3076,10 +3076,8 @@ function get_search_string($stx)
// XSS 관련 태그 제거
function clean_xss_tags($str, $check_entities=0, $is_remove_tags=0, $cur_str_len=0)
{
// space, tab('\t'), formfeed('\f'), vertical tab('\v'), newline('\n'), carriage return('\r') 를 제거한다.
// $str = preg_replace('#[[:space:]]#', '', $str);
// tab('\t'), formfeed('\f'), vertical tab('\v'), newline('\n'), carriage return('\r') 를 제거한다.
$str = preg_replace('#[\t\f\v\n\r]#', '', $str);
$str = preg_replace("#[\t\f\v\n\r]#", '', $str);
if( $is_remove_tags ){
$str = strip_tags($str);