diff --git a/lib/common.lib.php b/lib/common.lib.php index 6a6a6980f..ad6ceda74 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -3076,6 +3076,9 @@ 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); + if( $is_remove_tags ){ $str = strip_tags($str); }