XSS 취약점 수정
This commit is contained in:
@ -18,6 +18,8 @@ if (is_numeric($fg_no))
|
||||
else
|
||||
$sql_group = "";
|
||||
|
||||
$sv = isset($sv) ? get_search_string($sv) : '';
|
||||
|
||||
if ($st == 'all') {
|
||||
$sql_search = "and (fo_name like '%{$sv}%' or fo_content like '%{$sv}%')";
|
||||
} else if ($st == 'name') {
|
||||
@ -61,10 +63,13 @@ for($k=0;$res = sql_fetch_array($qry);$k++)
|
||||
$list_text[$k]['fo_name'] = cut_str($res['fo_name'],20);
|
||||
}
|
||||
|
||||
$arr_ajax_msg['error'] = "";
|
||||
$arr_ajax_msg['list_text'] = $list_text;
|
||||
$arr_ajax_msg['page'] = $page;
|
||||
$arr_ajax_msg['total_count'] = $total_count;
|
||||
$arr_ajax_msg['total_page'] = $total_page;
|
||||
$arr_ajax_msg = array(
|
||||
'error'=>'',
|
||||
'list_text'=>$list_text,
|
||||
'page'=>$page,
|
||||
'total_count'=>$total_count,
|
||||
'total_page'=>$total_page
|
||||
);
|
||||
|
||||
die( json_encode($arr_ajax_msg) );
|
||||
?>
|
||||
Reference in New Issue
Block a user