필터링 코드 추가

This commit is contained in:
chicpro
2015-12-10 16:12:20 +09:00
parent fea06d14b9
commit ab79139a91
5 changed files with 13 additions and 9 deletions

View File

@ -4,7 +4,7 @@ include_once('./_common.php');
if($is_guest)
exit;
$price = (int)$_POST['price'];
$price = (int)preg_replace('#[^0-9]#', '', $_POST['price']);
if($price <= 0)
die('상품금액이 0원이므로 쿠폰을 사용할 수 없습니다.');