쿼리문에서 따옴표 제대로 제거되지 않는 오류 수정
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$type = $_REQUEST['type'];
|
||||
$type = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $_REQUEST['type']);
|
||||
if ($type == 1) $g5['title'] = '히트상품';
|
||||
else if ($type == 2) $g5['title'] = '추천상품';
|
||||
else if ($type == 3) $g5['title'] = '최신상품';
|
||||
|
||||
@ -3,7 +3,7 @@ include_once('../common.php');
|
||||
|
||||
if (isset($_REQUEST['sort'])) {
|
||||
$sort = trim($_REQUEST['sort']);
|
||||
$sort = preg_replace("/[\<\>\'\"\%\=\(\)\s]/", "", $sort);
|
||||
$sort = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $sort);
|
||||
} else {
|
||||
$sort = '';
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ if (G5_IS_MOBILE) {
|
||||
return;
|
||||
}
|
||||
|
||||
$type = $_REQUEST['type'];
|
||||
$type = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $_REQUEST['type']);
|
||||
if ($type == 1) $g5['title'] = '히트상품';
|
||||
else if ($type == 2) $g5['title'] = '추천상품';
|
||||
else if ($type == 3) $g5['title'] = '최신상품';
|
||||
|
||||
Reference in New Issue
Block a user