정규식 패턴 수정
This commit is contained in:
1 parent
ab79139a91
commit
1e07d2c71f
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#i';
|
||||
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#';
|
||||
$it_id = preg_replace($pattern, '', $_POST['it_id']);
|
||||
|
||||
$sql = " select * from {$g5['g5_shop_item_table']} where it_id = '$it_id' and it_use = '1' ";
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#i';
|
||||
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#';
|
||||
|
||||
$it_id = preg_replace($pattern, '', $_POST['it_id']);
|
||||
$opt_id = preg_replace($pattern, '', $_POST['opt_id']);
|
||||
|
||||
@@ -5,7 +5,7 @@ if($is_guest)
|
||||
exit;
|
||||
|
||||
// 상품정보
|
||||
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#i';
|
||||
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#';
|
||||
$it_id = preg_replace($pattern, '', $_POST['it_id']);
|
||||
$sw_direct = $_POST['sw_direct'];
|
||||
$sql = " select it_id, ca_id, ca_id2, ca_id3 from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
|
||||
|
||||
Reference in new issue
Block a user