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

Commit

Permalink
취약점 [KVE-18-339] 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jul 3, 2018
1 parent 2e9b5b3 commit 6c9a4e4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion adm/faqlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
auth_check($auth[$sub_menu], "r");

$g5['title'] = 'FAQ 상세관리';
if ($fm_subject) $g5['title'] .= ' : '.$fm_subject;
if ($fm_subject){
$fm_subject = clean_xss_tags(strip_tags($fm_subject));
$g5['title'] .= ' : '.$fm_subject;
}

$fm_id = (int) $fm_id;

include_once (G5_ADMIN_PATH.'/admin.head.php');

$sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' ";
Expand Down
2 changes: 1 addition & 1 deletion adm/popular_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// 체크된 자료 삭제
if (isset($_POST['chk']) && is_array($_POST['chk'])) {
for ($i=0; $i<count($_POST['chk']); $i++) {
$pp_id = $_POST['chk'][$i];
$pp_id = (int) $_POST['chk'][$i];

sql_query(" delete from {$g5['popular_table']} where pp_id = '$pp_id' ", true);
}
Expand Down
2 changes: 1 addition & 1 deletion skin/member/basic/register_form.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
</span>

<?php if ($w == 'u' && file_exists($mb_img_path)) { ?>
<img src="<?php echo $mb_img_url ?>" alt="회원아이콘">
<img src="<?php echo $mb_img_url ?>" alt="회원이미지">
<input type="checkbox" name="del_mb_img" value="1" id="del_mb_img">
<label for="del_mb_img">삭제</label>
<?php } ?>
Expand Down
2 changes: 1 addition & 1 deletion theme/basic/skin/member/basic/register_form.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
</span>

<?php if ($w == 'u' && file_exists($mb_img_path)) { ?>
<img src="<?php echo $mb_img_url ?>" alt="회원아이콘">
<img src="<?php echo $mb_img_url ?>" alt="회원이미지">
<input type="checkbox" name="del_mb_img" value="1" id="del_mb_img">
<label for="del_mb_img">삭제</label>
<?php } ?>
Expand Down

0 comments on commit 6c9a4e4

Please sign in to comment.