From ff9f5ee936beb7d2738a192e51e1e573d9833952 Mon Sep 17 00:00:00 2001 From: kagla Date: Thu, 1 Jul 2021 11:52:11 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AC=B8=EC=9E=90=EC=97=B4=20=EC=95=88?= =?UTF-8?q?=EC=97=90=20=ED=8F=AC=ED=95=A8=EB=90=9C=20=EB=B3=80=EC=88=98?= =?UTF-8?q?=EC=97=90=20{=EC=A4=91=EA=B4=84=ED=98=B8}=20=EC=A0=81=EC=9A=A9?= =?UTF-8?q?=20(=ED=95=B4=ED=94=BC=EC=A0=95=EB=8B=98,210625)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/theme_preview.php | 4 ++-- bbs/ajax.filter.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adm/theme_preview.php b/adm/theme_preview.php index 208e0de53..031ecd09f 100644 --- a/adm/theme_preview.php +++ b/adm/theme_preview.php @@ -30,7 +30,7 @@ $qstr_device = '&mode='.$mode.'&device='.(G5_IS_MOBILE ? 'pc' : 'mobile $sql = " select bo_table, wr_parent from {$g5['board_new_table']} order by bn_id desc limit 1 "; $row = sql_fetch($sql); $bo_table = $row['bo_table']; -$board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '$bo_table' "); +$board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '{$bo_table}' "); $write_table = $g5['write_prefix'] . $bo_table; // theme.config.php 미리보기 게시판 스킨이 설정돼 있다면 @@ -172,7 +172,7 @@ require_once(G5_PATH.'/head.sub.php'); break; case 'view': $wr_id = $row['wr_parent']; - $write = sql_fetch(" select * from $write_table where wr_id = '$wr_id' "); + $write = sql_fetch(" select * from {$write_table} where wr_id = '{$wr_id}' "); include(G5_BBS_PATH.'/board.php'); break; case 'shop': diff --git a/bbs/ajax.filter.php b/bbs/ajax.filter.php index c696a0628..f0b414061 100644 --- a/bbs/ajax.filter.php +++ b/bbs/ajax.filter.php @@ -26,4 +26,4 @@ for ($i=0; $i