본문으로 건너뛰기

상품 검색 보안 강화.

PHP 8 · GODO26
변경 파일 수: 1개
변경 파일 목록
1
Component (1)
Goods.phpGoods/
변경 파일 코드
추가삭제
Component/Goods/Goods.php+14-1
변경 전Goods.php
*/
const RECENT_KEYWORD_COOKIE_DAYS = 365;
 
 
 
 
 
 
protected $db;
 
protected $arrBind = [];
*
* @return array 상품 정보
*/
public function getGoodsSearchList($pageNum = 10, $displayOrder = 'g.regDt asc', $imageType = 'list', $optionFl = false, $soldOutFl = true, $brandFl = false, $couponPriceFl = false, $displayCnt = 10, $brandDisplayFl = false, $usePage = true, $limit = null,array $goodsNo = null)
{
gd_isset($this->goodsTable,DB_GOODS);
$arrBind = null;
$mallBySession = SESSION::get(SESSION_GLOBAL_MALL);
 
 
 
 
 
 
 
 
 
$getValue = Request::get()->toArray();
 
 
변경 후Goods.php
*/
const RECENT_KEYWORD_COOKIE_DAYS = 365;
 
/**
* 페이징 기본값
*/
const PAGE_NUM_DEFAULT_SIZE = 10;
 
protected $db;
 
protected $arrBind = [];
*
* @return array 상품 정보
*/
public function getGoodsSearchList($pageNum = self::PAGE_NUM_DEFAULT_SIZE, $displayOrder = 'g.regDt asc', $imageType = 'list', $optionFl = false, $soldOutFl = true, $brandFl = false, $couponPriceFl = false, $displayCnt = 10, $brandDisplayFl = false, $usePage = true, $limit = null,array $goodsNo = null)
{
gd_isset($this->goodsTable,DB_GOODS);
$arrBind = null;
$mallBySession = SESSION::get(SESSION_GLOBAL_MALL);
if (is_null($pageNum)) {
$pageNum = self::PAGE_NUM_DEFAULT_SIZE;
}
 
$pageNum = filter_var($pageNum, FILTER_VALIDATE_INT, ['options' => ['min_range' => 0]]);
if ($pageNum === false) {
throw new \InvalidArgumentException("pageNum이 정상적인 값이 아닙니다.");
}
 
$getValue = Request::get()->toArray();