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
chicpro committed Jan 7, 2016
1 parent 357cfa2 commit a2b6d43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mobile/shop/orderformupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,8 @@
sql_query($sql);
}

$ad_subject = clean_xss_tags($ad_subject);

if($row['ad_id']){
$sql = " update {$g5['g5_shop_order_address_table']}
set ad_default = '$ad_default',
Expand Down
4 changes: 3 additions & 1 deletion shop/orderaddressupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
// 실제 번호를 넘김
$k = $_POST['chk'][$i];

$ad_subject = clean_xss_tags($_POST['ad_subject'][$k]);

$sql = " update {$g5['g5_shop_order_address_table']}
set ad_subject = '{$_POST['ad_subject'][$k]}' ";
set ad_subject = '$ad_subject' ";

if($_POST['ad_default'] && $_POST['ad_id'][$k] == $_POST['ad_default']) {
sql_query(" update {$g5['g5_shop_order_address_table']} set ad_default = '0' where mb_id = '{$member['mb_id']}' ");
Expand Down
2 changes: 2 additions & 0 deletions shop/orderformupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,8 @@
sql_query($sql);
}

$ad_subject = clean_xss_tags($ad_subject);

if($row['ad_id']){
$sql = " update {$g5['g5_shop_order_address_table']}
set ad_default = '$ad_default',
Expand Down

0 comments on commit a2b6d43

Please sign in to comment.