게시판분류에서 '팅' 글자를 인식하지 못하여 패턴을 쌍따옴표로 수정
This commit is contained in:
@ -3076,10 +3076,8 @@ function get_search_string($stx)
|
|||||||
// XSS 관련 태그 제거
|
// XSS 관련 태그 제거
|
||||||
function clean_xss_tags($str, $check_entities=0, $is_remove_tags=0, $cur_str_len=0)
|
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') 를 제거한다.
|
// 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 ){
|
if( $is_remove_tags ){
|
||||||
$str = strip_tags($str);
|
$str = strip_tags($str);
|
||||||
|
|||||||
Reference in New Issue
Block a user