From 8ecae083b8581713ea6f8e169dfee560cb6f345b Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 12 Nov 2019 10:21:49 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=EC=BD=94=EB=A9=98=ED=8A=B8=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=97=90=EC=84=9C=20hoo?= =?UTF-8?q?k=20=EC=9D=B8=EC=9E=90=EA=B0=92=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_comment_update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs/write_comment_update.php b/bbs/write_comment_update.php index b99a4ac7c..474083ec2 100644 --- a/bbs/write_comment_update.php +++ b/bbs/write_comment_update.php @@ -341,7 +341,7 @@ delete_cache_latest($bo_table); $redirect_url = short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&'.$qstr.'&#c_'.$comment_id); -run_event('comment_update_after', $board, $wr_id, $w, $qstr, $redirect_url); +run_event('comment_update_after', $board, $wr_id, $w, $qstr, $redirect_url, $comment_id); goto_url($redirect_url); ?> From 3973091aa0236788dde1a68d094887168edb7283 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 13 Nov 2019 11:37:45 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=EC=A7=A7=EC=9D=80=20url=20=ED=91=9C?= =?UTF-8?q?=EA=B8=B0=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 --- lib/uri.lib.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/uri.lib.php b/lib/uri.lib.php index bf1da941a..d9a04d9c5 100644 --- a/lib/uri.lib.php +++ b/lib/uri.lib.php @@ -118,7 +118,7 @@ function short_url_clean($string_url, $add_qry=''){ } $return_url = ''; - $qstring = parse_str($url['query'], $vars); + parse_str($url['query'], $vars); // 예) Array ( [scheme] => http [host] => sir.kr [path] => /bbs/board.php [query] => wr_id=1110870&bo_table=cm_free&cpage=1 [fragment] => c_1110946 ) //while(list($k,$v) = each($vars)) $page_name .= "/".$v; @@ -134,7 +134,7 @@ function short_url_clean($string_url, $add_qry=''){ foreach( $allow_param_keys as $key=>$v ){ if( !isset($vars[$key]) || empty($vars[$key]) ) continue; - $add = ''; + $s[$key] = $vars[$key]; } @@ -143,7 +143,7 @@ function short_url_clean($string_url, $add_qry=''){ if( $get_write['wr_seo_title'] ){ unset($s['wr_id']); - $s['wr_seo_title'] = $get_write['wr_seo_title'].'/'; + $s['wr_seo_title'] = urlencode($get_write['wr_seo_title']).'/'; } } @@ -180,7 +180,12 @@ function short_url_clean($string_url, $add_qry=''){ } function correct_goto_url($url){ - return $url.'/'; + + if( substr($url, -1) !== '/' ){ + return $url.'/'; + } + + return $url; } function generate_seo_title($string, $wordLimit=G5_SEO_TITEL_WORD_CUT){ From e048e900bc3cd7521073c0a4ea8734493a8693f7 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 15 Nov 2019 18:33:29 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=EB=B2=84=EC=A0=84=205.4.0.6=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 eae5b6875..6d7fc1fa9 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,7 @@ ********************/ define('G5_VERSION', '그누보드5'); -define('G5_GNUBOARD_VER', '5.4.0.5'); +define('G5_GNUBOARD_VER', '5.4.0.6'); // 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음 define('_GNUBOARD_', true); From 6ec6475f37d07b70dc5c3d363d7ca80b51a46f03 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 15 Nov 2019 18:41:27 +0900 Subject: [PATCH 4/4] =?UTF-8?q?css=20=EB=B0=8F=20js=20=EB=B2=84=EC=A0=84?= =?UTF-8?q?=EB=82=A0=EC=A7=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/version.extend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/version.extend.php b/extend/version.extend.php index fd9787af1..74472181f 100644 --- a/extend/version.extend.php +++ b/extend/version.extend.php @@ -1,6 +1,6 @@ \ No newline at end of file