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

Commit

Permalink
KVE-2019-0082 원격취약점 다시 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Mar 19, 2019
1 parent 4f6bbdf commit bf778a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions adm/shop_admin/itemeventformupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
if ($ev_himg_del) @unlink(G5_DATA_PATH."/event/{$ev_id}_h");
if ($ev_timg_del) @unlink(G5_DATA_PATH."/event/{$ev_id}_t");

$ev_skin = preg_replace('#\.+/#', '', $ev_skin);
$ev_mobile_skin = preg_replace('#\.+/#', '', $ev_mobile_skin);
$ev_skin = preg_replace('#\.+(\/|\\\)#', '', $ev_skin);
$ev_mobile_skin = preg_replace('#\.+(\/|\\\)#', '', $ev_mobile_skin);

$skin_regex_patten = "^list.[0-9]+\.skin\.php";

Expand Down
2 changes: 1 addition & 1 deletion mobile/shop/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
$order_by = 'b.it_order, b.it_id desc';

if ($skin) {
$skin = preg_replace('#\.+/#', '', $skin);
$skin = preg_replace('#\.+(\/|\\\)#', '', $skin);
$ev['ev_skin'] = $skin;
}

Expand Down
2 changes: 1 addition & 1 deletion shop/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
$order_by = 'b.it_order, b.it_id desc';

if ($skin) {
$skin = preg_replace('#\.+/#', '', $skin);
$skin = preg_replace('#\.+(\/|\\\)#', '', $skin);
$ev['ev_skin'] = $skin;
}

Expand Down

0 comments on commit bf778a3

Please sign in to comment.