Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
영카트 다중 취약점( 17-0556 ) 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Sep 11, 2017
1 parent 374c8cd commit 71c5a40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adm/shop_admin/bannerformupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
$bn_bimg = $_FILES['bn_bimg']['tmp_name'];
$bn_bimg_name = $_FILES['bn_bimg']['name'];

$bn_id = (int) $bn_id;

if ($bn_bimg_del) @unlink(G5_DATA_PATH."/banner/$bn_id");

//파일이 이미지인지 체크합니다.
Expand Down
3 changes: 3 additions & 0 deletions adm/shop_admin/itemsellrank.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
$doc = strip_tags($doc);
$sort1 = strip_tags($sort1);

if( preg_match("/[^0-9]/", $fr_date) ) $fr_date = '';
if( preg_match("/[^0-9]/", $to_date) ) $to_date = '';

$sql = " select a.it_id,
b.*,
SUM(IF(ct_status = '쇼핑',ct_qty, 0)) as ct_status_1,
Expand Down

0 comments on commit 71c5a40

Please sign in to comment.