Skip to content

Commit 911503e

Browse files
author
EC2 Default User
committed
$subject 가 첫번째 조건에 만족하면 $cont 를 초기화 하지 못하는 보안 취약점 수정 (munsiwoo님,210623)
1 parent cc2524e commit 911503e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎bbs/ajax.filter.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@
1111
$str = $filter[$i];
1212

1313
// 제목 필터링 (찾으면 중지)
14-
$subj = "";
14+
$subj = $cont = "";
1515
$pos = stripos($subject, $str);
1616
if ($pos !== false) {
1717
$subj = $str;
1818
break;
1919
}
2020

2121
// 내용 필터링 (찾으면 중지)
22-
$cont = "";
2322
$pos = stripos($content, $str);
2423
if ($pos !== false) {
2524
$cont = $str;

0 commit comments

Comments
 (0)