From bd7cc14f7544f1180be788550522f3b56034d175 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 30 Mar 2020 12:27:06 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EC=98=81=EC=B9=B4=ED=8A=B8=205.4=20?= =?UTF-8?q?=EB=B2=84=EC=A0=84=20=EC=83=81=ED=92=88=20=EC=A7=A7=EC=9D=80?= =?UTF-8?q?=EC=A3=BC=EC=86=8C=20=EC=9E=98=EB=AA=BB=EB=90=9C=20rewrite=20?= =?UTF-8?q?=EC=A0=95=EA=B7=9C=EC=8B=9D=20=EC=BD=94=EB=93=9C=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 --- lib/shop.uri.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shop.uri.lib.php b/lib/shop.uri.lib.php index e22f50bec..41409d18a 100644 --- a/lib/shop.uri.lib.php +++ b/lib/shop.uri.lib.php @@ -156,7 +156,7 @@ function add_shop_nginx_conf_rules($rules, $get_path_url, $base_path, $return_st $add_rules[] = "rewrite ^{$base_path}shop/list-([0-9a-z]+)$ {$base_path}".G5_SHOP_DIR."/list.php?ca_id=$1&rewrite=1 break;"; $add_rules[] = "rewrite ^{$base_path}shop/type-([0-9a-z]+)$ {$base_path}".G5_SHOP_DIR."/listtype.php?type=$1&rewrite=1 break;"; - $add_rules[] = "rewrite ^{$base_path}shop/([0-9a-zA-Z_]+)$ {$base_path}".G5_SHOP_DIR."/item.php?it_id=$1&rewrite=1 break;"; + $add_rules[] = "rewrite ^{$base_path}shop/([0-9a-zA-Z_\-]+)$ {$base_path}".G5_SHOP_DIR."/item.php?it_id=$1&rewrite=1 break;"; $add_rules[] = "rewrite ^{$base_path}shop/([^/]+)/$ {$base_path}".G5_SHOP_DIR."/item.php?it_seo_title=$1&rewrite=1 break;"; return implode("\n", $add_rules).$rules; @@ -169,7 +169,7 @@ function add_shop_mod_rewrite_rules($rules, $get_path_url, $base_path, $return_s $add_rules[] = 'RewriteRule ^shop/list-([0-9a-z]+)$ '.G5_SHOP_DIR.'/list.php?ca_id=$1&rewrite=1 [QSA,L]'; $add_rules[] = 'RewriteRule ^shop/type-([0-9a-z]+)$ '.G5_SHOP_DIR.'/listtype.php?type=$1&rewrite=1 [QSA,L]'; - $add_rules[] = 'RewriteRule ^shop/([0-9a-zA-Z_]+)$ '.G5_SHOP_DIR.'/item.php?it_id=$1&rewrite=1 [QSA,L]'; + $add_rules[] = 'RewriteRule ^shop/([0-9a-zA-Z_\-]+)$ '.G5_SHOP_DIR.'/item.php?it_id=$1&rewrite=1 [QSA,L]'; $add_rules[] = 'RewriteRule ^shop/([^/]+)/$ '.G5_SHOP_DIR.'/item.php?it_seo_title=$1&rewrite=1 [QSA,L]'; return implode("\n", $add_rules).$rules; From 81366ede7751cbf3e2e7e8e03a00f42f5c64cfb7 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 30 Mar 2020 15:01:03 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=ED=81=AC=EB=A1=AC=2080=20=EB=B2=84?= =?UTF-8?q?=EC=A0=84=20KG=EC=9D=B4=EB=8B=88=EC=8B=9C=EC=8A=A4=20http=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=EC=9D=98=20PC=EC=97=90=EC=84=9C=20=EA=B2=B0?= =?UTF-8?q?=EC=A0=9C=EA=B0=80=20=EC=95=88=EB=90=98=EB=8A=94=20=ED=98=84?= =?UTF-8?q?=EC=83=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 3136cabb6..572cabbf4 100644 --- a/common.php +++ b/common.php @@ -220,7 +220,7 @@ if( ! class_exists('XenoPostToForm') ){ class XenoPostToForm { public static function check() { - return !isset($_COOKIE['PHPSESSID']) && count($_POST) && ((isset($_SERVER['HTTP_REFERER']) && !preg_match('~^https://'.preg_quote($_SERVER['HTTP_HOST'], '~').'/~', $_SERVER['HTTP_REFERER']) || (! $_SERVER['HTTP_REFERER'] && isset($_POST['P_NOTI'])) )); + return !isset($_COOKIE['PHPSESSID']) && count($_POST) && ((isset($_SERVER['HTTP_REFERER']) && !preg_match('~^https://'.preg_quote($_SERVER['HTTP_HOST'], '~').'/~', $_SERVER['HTTP_REFERER']) || ! isset($_SERVER['HTTP_REFERER']) )); } public static function submit($posts) { From d303ef4d3ca25970cd5d0b5b9491006443180c14 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 30 Mar 2020 15:21:50 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=EB=B2=84=EC=A0=84=205.4.2.3.1=20=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=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 18feabd73..b9f4fffe2 100644 --- a/config.php +++ b/config.php @@ -6,7 +6,7 @@ define('G5_VERSION', '그누보드5'); define('G5_GNUBOARD_VER', '5.4.2.3'); -define('G5_YOUNGCART_VER', '5.4.2.3'); +define('G5_YOUNGCART_VER', '5.4.2.3.1'); // 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음 define('_GNUBOARD_', true);