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

Commit

Permalink
KVE-2019-0567, 0657 XSS 취약점 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Mar 19, 2019
1 parent 2edb3a8 commit 40695f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mobile/shop/event.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
include_once('./_common.php');

$ev_id = (int) $ev_id;

$sql = " select * from {$g5['g5_shop_event_table']}
where ev_id = '$ev_id'
and ev_use = 1 ";
Expand Down
2 changes: 2 additions & 0 deletions shop/event.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
include_once('./_common.php');

$ev_id = (int) $ev_id;

if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/event.php');
return;
Expand Down
2 changes: 2 additions & 0 deletions shop/orderform.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
// 주문상품 재고체크 js 파일
add_javascript('<script src="'.G5_JS_URL.'/shop.order.js"></script>', 0);

$sw_direct = preg_replace('/[^a-z0-9_]/i', '', $sw_direct);

// 모바일 주문인지
$is_mobile_order = is_mobile();

Expand Down

0 comments on commit 40695f4

Please sign in to comment.