[KVE-2020-0013]그누보드_Reflect XSS_수정

This commit is contained in:
thisgun
2020-03-02 20:23:38 +09:00
parent 31705f32c9
commit 6fe20b0a13
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@ check_admin_token();
$target_table = trim($_POST['target_table']);
$target_subject = trim($_POST['target_subject']);
$target_subject = strip_tags(clean_xss_attributes($target_subject));
if (!preg_match('/[A-Za-z0-9_]{1,20}/', $target_table)) {
alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)');
}