KVE-2019-0082 원격취약점 수정
This commit is contained in:
@ -8,16 +8,18 @@ auth_check($auth[$sub_menu], "w");
|
||||
|
||||
for ($i=0; $i<count($_POST['it_id']); $i++)
|
||||
{
|
||||
$iit_id = preg_replace('/[^a-z0-9_\-]/i', '', $_POST['it_id'][$i]);
|
||||
|
||||
$sql = " delete from {$g5['g5_shop_event_item_table']}
|
||||
where ev_id = '$ev_id'
|
||||
and it_id = '{$_POST['it_id'][$i]}' ";
|
||||
and it_id = '{$iit_id}' ";
|
||||
sql_query($sql);
|
||||
|
||||
if ($_POST['ev_chk'][$i])
|
||||
if (isset($_POST['ev_chk'][$i]) && $_POST['ev_chk'][$i])
|
||||
{
|
||||
$sql = "insert into {$g5['g5_shop_event_item_table']}
|
||||
set ev_id = '$ev_id',
|
||||
it_id = '{$_POST['it_id'][$i]}' ";
|
||||
it_id = '{$iit_id}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user