From bc0be66aadaae8b3ee338228031be61b7205eb37 Mon Sep 17 00:00:00 2001 From: thisgun Date: Sat, 9 Jan 2021 16:10:42 +0900 Subject: [PATCH 1/3] =?UTF-8?q?PHP8=20=EB=B2=84=EC=A0=84=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EA=B2=BD=EA=B3=A0=EB=AC=B8=20=EB=9C=A8=EB=8A=94=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/view.php | 1 + bbs/content.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/adm/view.php b/adm/view.php index 057eea104..58db281e8 100644 --- a/adm/view.php +++ b/adm/view.php @@ -2,6 +2,7 @@ include_once('./_common.php'); $call = isset($_REQUEST['call']) ? strtolower(preg_replace('/[^a-z0-9_]/i', '', $_REQUEST['call'])) : ''; +$token = isset($_REQUEST['token']) ? clean_xss_tags($_REQUEST['token'], 1, 1) : ''; if( ! $call ){ return; diff --git a/bbs/content.php b/bbs/content.php index b74670150..6d91c1387 100644 --- a/bbs/content.php +++ b/bbs/content.php @@ -12,12 +12,12 @@ if( !isset($g5['content_table']) ){ // 내용 if($co_seo_title){ $co = get_content_by_field($g5['content_table'], 'content', 'co_seo_title', generate_seo_title($co_seo_title)); - $co_id = $co['co_id']; + $co_id = isset($co['co_id']) ? $co['co_id'] : 0; } else { $co = get_content_db($co_id); } -if( ! (isset($co['co_seo_title']) && $co['co_seo_title']) && $co['co_id'] ){ +if( ! (isset($co['co_seo_title']) && $co['co_seo_title']) && isset($co['co_id']) && $co['co_id'] ){ seo_title_update($g5['content_table'], $co['co_id'], 'content'); } From 051aff0e8e66581a4684d6844c98d879273175a8 Mon Sep 17 00:00:00 2001 From: thisgun Date: Sat, 9 Jan 2021 16:12:24 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=EC=97=90?= =?UTF-8?q?=EC=84=9C=20FAQ=20=EC=82=AD=EC=A0=9C=20=EC=95=88=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/faqformupdate.php | 4 ++-- adm/faqmasterformupdate.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adm/faqformupdate.php b/adm/faqformupdate.php index 2b54d1879..a68984bcf 100644 --- a/adm/faqformupdate.php +++ b/adm/faqformupdate.php @@ -12,11 +12,11 @@ else check_admin_token(); -$fm_id = isset($_POST['fm_id']) ? (int) $_POST['fm_id'] : 0; +$fm_id = isset($_REQUEST['fm_id']) ? (int) $_REQUEST['fm_id'] : 0; +$fa_id = isset($_REQUEST['fa_id']) ? (int) $_REQUEST['fa_id'] : 0; $fa_subject = isset($_POST['fa_subject']) ? $_POST['fa_subject'] : ''; $fa_content = isset($_POST['fa_content']) ? $_POST['fa_content'] : ''; $fa_order = isset($_POST['fa_order']) ? (int) $_POST['fa_order'] : 0; -$fa_id = isset($_POST['fa_id']) ? (int) $_POST['fa_id'] : 0; $sql_common = " fa_subject = '$fa_subject', fa_content = '$fa_content', diff --git a/adm/faqmasterformupdate.php b/adm/faqmasterformupdate.php index bdc3c39a1..9c26300c7 100644 --- a/adm/faqmasterformupdate.php +++ b/adm/faqmasterformupdate.php @@ -15,7 +15,7 @@ check_admin_token(); @mkdir(G5_DATA_PATH."/faq", G5_DIR_PERMISSION); @chmod(G5_DATA_PATH."/faq", G5_DIR_PERMISSION); -$fm_id = isset($_POST['fm_id']) ? (int) $_POST['fm_id'] : 0; +$fm_id = isset($_REQUEST['fm_id']) ? (int) $_REQUEST['fm_id'] : 0; $fm_himg_del = isset($_POST['fm_himg_del']) ? (int) $_POST['fm_himg_del'] : 0; $fm_timg_del = isset($_POST['fm_timg_del']) ? (int) $_POST['fm_timg_del'] : 0; $fm_subject = isset($_POST['fm_subject']) ? strip_tags(clean_xss_attributes($_POST['fm_subject'])) : ''; From e927f152829df29179eedf0d0f5ba292a34264a7 Mon Sep 17 00:00:00 2001 From: thisgun Date: Sat, 9 Jan 2021 16:12:52 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=EB=B2=84=EC=A0=84=205.4.4.5=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.php b/config.php index 2228ca355..caa78d1a7 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,7 @@ ********************/ define('G5_VERSION', '그누보드5'); -define('G5_GNUBOARD_VER', '5.4.4.4'); +define('G5_GNUBOARD_VER', '5.4.4.5'); // 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음 define('_GNUBOARD_', true);