From 210ee5285cd87a92abc68c71fdec08adc03b23fb Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 16 Nov 2015 15:57:32 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20?= =?UTF-8?q?=EA=B0=92=20=EC=B2=B4=ED=81=AC=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 --- bbs/ajax.mb_email.php | 4 ++++ bbs/ajax.mb_id.php | 4 ++++ bbs/ajax.mb_nick.php | 4 ++++ bbs/register_form_update.php | 19 +++++++++++++++++++ 4 files changed, 31 insertions(+) diff --git a/bbs/ajax.mb_email.php b/bbs/ajax.mb_email.php index 6c50300cc..21a7df62c 100644 --- a/bbs/ajax.mb_email.php +++ b/bbs/ajax.mb_email.php @@ -5,8 +5,12 @@ include_once(G5_LIB_PATH.'/register.lib.php'); $mb_email = trim($_POST['reg_mb_email']); $mb_id = trim($_POST['reg_mb_id']); +set_session('ss_check_mb_email', ''); + if ($msg = empty_mb_email($mb_email)) die($msg); if ($msg = valid_mb_email($mb_email)) die($msg); if ($msg = prohibit_mb_email($mb_email)) die($msg); if ($msg = exist_mb_email($mb_email, $mb_id)) die($msg); + +set_session('ss_check_mb_email', $mb_email); ?> \ No newline at end of file diff --git a/bbs/ajax.mb_id.php b/bbs/ajax.mb_id.php index 6b0badd06..6ab21cb3f 100644 --- a/bbs/ajax.mb_id.php +++ b/bbs/ajax.mb_id.php @@ -4,9 +4,13 @@ include_once(G5_LIB_PATH.'/register.lib.php'); $mb_id = trim($_POST['reg_mb_id']); +set_session('ss_check_mb_id', ''); + if ($msg = empty_mb_id($mb_id)) die($msg); if ($msg = valid_mb_id($mb_id)) die($msg); if ($msg = count_mb_id($mb_id)) die($msg); if ($msg = exist_mb_id($mb_id)) die($msg); if ($msg = reserve_mb_id($mb_id)) die($msg); + +set_session('ss_check_mb_id', $mb_id); ?> \ No newline at end of file diff --git a/bbs/ajax.mb_nick.php b/bbs/ajax.mb_nick.php index 07fc5dcc9..74a289444 100644 --- a/bbs/ajax.mb_nick.php +++ b/bbs/ajax.mb_nick.php @@ -5,9 +5,13 @@ include_once(G5_LIB_PATH.'/register.lib.php'); $mb_nick = trim($_POST['reg_mb_nick']); $mb_id = trim($_POST['reg_mb_id']); +set_session('ss_check_mb_nick', ''); + if ($msg = empty_mb_nick($mb_nick)) die($msg); if ($msg = valid_mb_nick($mb_nick)) die($msg); if ($msg = count_mb_nick($mb_nick)) die($msg); if ($msg = exist_mb_nick($mb_nick, $mb_id)) die($msg); if ($msg = reserve_mb_nick($mb_nick)) die($msg); + +set_session('ss_check_mb_nick', $mb_nick); ?> \ No newline at end of file diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php index b61c373d5..ef1392ca6 100644 --- a/bbs/register_form_update.php +++ b/bbs/register_form_update.php @@ -79,6 +79,17 @@ if ($w == '' || $w == 'u') { if ($msg = valid_mb_id($mb_id)) alert($msg, "", true, true); if ($msg = count_mb_id($mb_id)) alert($msg, "", true, true); + // 이름, 닉네임에 utf-8 이외의 문자가 포함됐다면 오류 + // 서버환경에 따라 정상적으로 체크되지 않을 수 있음. + $tmp_mb_name = iconv('UTF-8', 'UTF-8//IGNORE', $mb_name); + if($tmp_mb_name != $mb_name) { + alert('이름을 올바르게 입력해 주십시오.'); + } + $tmp_mb_nick = iconv('UTF-8', 'UTF-8//IGNORE', $mb_nick); + if($tmp_mb_nick != $mb_nick) { + alert('닉네임을 올바르게 입력해 주십시오.'); + } + if ($w == '' && !$mb_password) alert('비밀번호가 넘어오지 않았습니다.'); if($w == '' && $mb_password != $mb_password_re) @@ -103,6 +114,14 @@ if ($w == '' || $w == 'u') { if ($w=='') { if ($msg = exist_mb_id($mb_id)) alert($msg); + if (get_session('ss_check_mb_id') != $mb_id || get_session('ss_check_mb_nick') != $mb_nick || get_session('ss_check_mb_email') != $mb_email) { + set_session('ss_check_mb_id', ''); + set_session('ss_check_mb_nick', ''); + set_session('ss_check_mb_email', ''); + + alert('올바른 방법으로 이용해 주십시오.'); + } + // 본인확인 체크 if($config['cf_cert_use'] && $config['cf_cert_req']) { if(trim($_POST['cert_no']) != $_SESSION['ss_cert_no'] || !$_SESSION['ss_cert_no']) From 02cfe7a453b7aa780d946fbdb878cd7a6fa4b5c6 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 16 Nov 2015 16:37:51 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/kcaptcha/kcaptcha.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/kcaptcha/kcaptcha.lib.php b/plugin/kcaptcha/kcaptcha.lib.php index 6c0ea5470..8449d1dc7 100644 --- a/plugin/kcaptcha/kcaptcha.lib.php +++ b/plugin/kcaptcha/kcaptcha.lib.php @@ -247,7 +247,7 @@ function captcha_html($class="captcha") $html .= "\n".''; $html .= "\n".''; $html .= ''; - $html .= "\n".'자동등록방지 영숫자를 순서대로 입력하세요.'; + $html .= "\n".'자동등록방지 숫자를 순서대로 입력하세요.'; $html .= "\n".''; return $html; } From 2f822d4ee464b603a30bc399a11c754912ea5f52 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 16 Nov 2015 16:41:57 +0900 Subject: [PATCH 3/3] =?UTF-8?q?5.1.7=20=EB=B2=84=EC=A0=84=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= 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 f969d91a2..081cb309f 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,7 @@ ********************/ define('G5_VERSION', '그누보드5'); -define('G5_GNUBOARD_VER', '5.1.6'); +define('G5_GNUBOARD_VER', '5.1.7'); // 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음 define('_GNUBOARD_', true);