영카트 [18-346] 취약점 수정

This commit is contained in:
thisgun
2018-07-03 15:59:51 +09:00
parent 66444aa8ad
commit 08f47f7ceb
4 changed files with 96 additions and 7 deletions

View File

@ -98,7 +98,7 @@ define('G5_SHOP_CSS_URL', str_replace(G5_PATH, G5_URL, $skin_dir));
$g5['title'] = $it['it_name'].' > '.$it['ca_name'];
// 분류 상단 코드가 있으면 출력하고 없으면 기본 상단 코드 출력
if ($ca['ca_include_head'])
if ($ca['ca_include_head'] && is_include_path_check($ca['ca_include_head']))
@include_once($ca['ca_include_head']);
else
include_once(G5_SHOP_PATH.'/_head.php');
@ -268,7 +268,7 @@ echo conv_content($it['it_tail_html'], 1);
?>
<?php
if ($ca['ca_include_tail'])
if ($ca['ca_include_tail'] && is_include_path_check($ca['ca_include_tail']))
@include_once($ca['ca_include_tail']);
else
include_once(G5_SHOP_PATH.'/_tail.php');