Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
선택옵션 필터링 구문 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Nov 7, 2017
1 parent fefc78b commit 0972f36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shop/itemoption.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#';

$it_id = preg_replace($pattern, '', $_POST['it_id']);
$opt_id = preg_replace($pattern, '', $_POST['opt_id']);
//$opt_id = preg_replace($pattern, '', $_POST['opt_id']);
$opt_id = addslashes(sql_real_escape_string(preg_replace(G5_OPTION_ID_FILTER, '', $_POST['opt_id'])));
$idx = preg_replace('#[^0-9]#', '', $_POST['idx']);
$sel_count = preg_replace('#[^0-9]#', '', $_POST['sel_count']);

Expand Down

0 comments on commit 0972f36

Please sign in to comment.