From 359b20606e73b955cd80e1668ff388e4ccaf4b07 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 25 Jan 2021 14:14:41 +0900 Subject: [PATCH] =?UTF-8?q?PHP8=20=EC=97=90=EC=84=9C=20=EA=B2=BD=EA=B3=A0?= =?UTF-8?q?=EB=AC=B8=EC=9D=B4=20=EB=82=98=EC=98=AC=EC=88=98=20=EC=9E=88?= =?UTF-8?q?=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/menu_form.php | 1 + bbs/search.php | 4 ++-- lib/latest.lib.php | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/adm/menu_form.php b/adm/menu_form.php index 59bbd4415..4c8c43473 100644 --- a/adm/menu_form.php +++ b/adm/menu_form.php @@ -8,6 +8,7 @@ if ($is_admin != 'super') $g5['title'] = '메뉴 추가'; include_once(G5_PATH.'/head.sub.php'); +$new = isset($_GET['new']) ? clean_xss_tags($_GET['new'], 1, 1) : ''; $code = isset($_GET['code']) ? preg_replace('/[^0-9a-zA-Z]/', '', $_GET['code']) : ''; // 코드 diff --git a/bbs/search.php b/bbs/search.php index 3b1affbf3..4211a6db6 100644 --- a/bbs/search.php +++ b/bbs/search.php @@ -151,7 +151,7 @@ if ($stx) { for ($i=0; $i 0 ? $search_table_count[$i-1] : 0); break; } } @@ -183,7 +183,7 @@ if ($stx) { } // 비밀글은 검색 불가 - if (strstr($row['wr_option'].$row2['wr_option'], 'secret')) + if (strstr($row['wr_option'].(isset($row2['wr_option']) ? $row2['wr_option'] : ''), 'secret')) $row['wr_content'] = '[비밀글 입니다.]'; $subject = get_text($row['wr_subject']); diff --git a/lib/latest.lib.php b/lib/latest.lib.php index fc6925e0c..1d3613242 100644 --- a/lib/latest.lib.php +++ b/lib/latest.lib.php @@ -37,7 +37,7 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40, $cache_time= if(G5_USE_CACHE) { $cache_file_name = "latest-{$bo_table}-{$skin_dir}-{$rows}-{$subject_len}-".g5_cache_secret_key(); - $caches = g5_get_cache($cache_file_name, $time_unit * $cache_time); + $caches = g5_get_cache($cache_file_name, (int) $time_unit * (int) $cache_time); $cache_list = isset($caches['list']) ? $caches['list'] : array(); g5_latest_cache_data($bo_table, $cache_list); } @@ -98,7 +98,7 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40, $cache_time= 'bo_subject' => sql_escape_string($bo_subject), ); - g5_set_cache($cache_file_name, $caches, $time_unit * $cache_time); + g5_set_cache($cache_file_name, $caches, (int) $time_unit * (int) $cache_time); } } else { $list = $cache_list;