Skip to content

Commit

Permalink
new.php XSS 취약점 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chicpro committed Nov 27, 2015
1 parent beb7a86 commit d5b7dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bbs/new.php
Expand Up @@ -6,7 +6,7 @@

$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = 1 ";

$gr_id = isset($_GET['gr_id']) ? $_GET['gr_id'] : "";
$gr_id = isset($_GET['gr_id']) ? substr(preg_replace('#[^a-z0-9_]#i', '', $_GET['gr_id']), 0, 10) : '';
if ($gr_id) {
$sql_common .= " and b.gr_id = '$gr_id' ";
}
Expand Down

0 comments on commit d5b7dd1

Please sign in to comment.