From 4724cc4c0536e2aa566edc2164f4616df1d948bc Mon Sep 17 00:00:00 2001 From: kjh Date: Fri, 10 Jun 2022 03:26:52 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=EC=9D=B4=EB=8B=88=EC=8B=9C=EC=8A=A4=20host?= =?UTF-8?q?=20check=20=EC=A0=95=EA=B7=9C=ED=91=9C=ED=98=84=EC=8B=9D=20?= =?UTF-8?q?=ED=8C=A8=ED=84=B4=20=EC=88=98=EC=A0=95=20#186?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/inicis/libs/HttpClient.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/shop/inicis/libs/HttpClient.php b/shop/inicis/libs/HttpClient.php index 2179eb82e..ac162a16e 100644 --- a/shop/inicis/libs/HttpClient.php +++ b/shop/inicis/libs/HttpClient.php @@ -32,10 +32,11 @@ class HttpClient { $data = substr($data, 1); // remove leading "&" $url_data = parse_url($url); - // host 가 inicis.com 의 주소가 아니라면 false 반환 - // [scheme] => https, [host] => fcstdpay.inicis.com, [path] => /api/payAuth - if (preg_match("#inicis\.com$#", $url_data["host"]) == false) { - // error_log(print_r($url_data, 1)); + // host 가 .inicis.com 의 주소가 아니라면 false 반환 + // [scheme] => https + // [host] => fcstdpay.inicis.com || stdpay.inicis.com || ksstdpay.inicis.com + // [path] => /api/payAuth + if (preg_match("#\.inicis\.com$#", $url_data["host"]) == false) { return false; } From 564723c6485bd7425748e8b566234c6caa2a1d98 Mon Sep 17 00:00:00 2001 From: kjh Date: Fri, 10 Jun 2022 05:18:04 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=ED=83=88=ED=87=B4=EB=90=9C=20=ED=9A=8C?= =?UTF-8?q?=EC=9B=90=EB=8F=84=20=EC=84=B8=EC=85=98=EC=9D=B4=20=EB=A7=8C?= =?UTF-8?q?=EB=A3=8C=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=A1=B0=EA=B1=B4=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20#191?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index 6f2b363ed..84f71e8df 100644 --- a/common.php +++ b/common.php @@ -516,7 +516,10 @@ if (isset($_SESSION['ss_mb_id']) && $_SESSION['ss_mb_id']) { // 로그인중이 $member = get_member($_SESSION['ss_mb_id']); // 차단된 회원이면 ss_mb_id 초기화, 또는 세션에 저장된 회원 토큰값을 비교하여 틀리면 초기화 - if( ($member['mb_intercept_date'] && $member['mb_intercept_date'] <= date("Ymd", G5_SERVER_TIME)) || (function_exists('check_auth_session_token') && !check_auth_session_token($member['mb_datetime'])) ) { + if( ($member['mb_intercept_date'] && $member['mb_intercept_date'] <= date("Ymd", G5_SERVER_TIME)) + || ($member['mb_leave_date'] && $member['mb_leave_date'] <= date("Ymd", G5_SERVER_TIME)) + || (function_exists('check_auth_session_token') && !check_auth_session_token($member['mb_datetime'])) + ) { set_session('ss_mb_id', ''); $member = array(); } else {