diff --git a/adm/member_form.php b/adm/member_form.php
index e47771fcd..ddcdfbe47 100644
--- a/adm/member_form.php
+++ b/adm/member_form.php
@@ -214,11 +214,9 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
-
- -
-
-
-
+
+
+
diff --git a/adm/member_form_update.php b/adm/member_form_update.php
index 333b18728..310e5e8d1 100644
--- a/adm/member_form_update.php
+++ b/adm/member_form_update.php
@@ -29,6 +29,9 @@ if($_POST['mb_certify_case'] && $_POST['mb_certify']) {
$mb_adult = 0;
}
+$mb_zip1 = substr($_POST['mb_zip'], 0, 3);
+$mb_zip2 = substr($_POST['mb_zip'], 3);
+
$sql_common = " mb_name = '{$_POST['mb_name']}',
mb_nick = '{$_POST['mb_nick']}',
mb_email = '{$_POST['mb_email']}',
@@ -37,8 +40,8 @@ $sql_common = " mb_name = '{$_POST['mb_name']}',
mb_hp = '{$mb_hp}',
mb_certify = '{$mb_certify}',
mb_adult = '{$mb_adult}',
- mb_zip1 = '{$_POST['mb_zip1']}',
- mb_zip2 = '{$_POST['mb_zip2']}',
+ mb_zip1 = '$mb_zip1',
+ mb_zip2 = '$mb_zip2',
mb_addr1 = '{$_POST['mb_addr1']}',
mb_addr2 = '{$_POST['mb_addr2']}',
mb_addr3 = '{$_POST['mb_addr3']}',
diff --git a/bbs/alert.php b/bbs/alert.php
index d64b6f2fd..6b1ab26a7 100644
--- a/bbs/alert.php
+++ b/bbs/alert.php
@@ -30,7 +30,8 @@ include_once(G5_PATH.'/head.sub.php');
$msg2 = str_replace("\\n", " ", $msg);
-if (!$url) $url = $_SERVER['HTTP_REFERER'];
+$url = clean_xss_tags($url);
+if (!$url) $url = clean_xss_tags($_SERVER['HTTP_REFERER']);
// url 체크
check_url_host($url);
diff --git a/bbs/confirm.php b/bbs/confirm.php
index 76e9c7652..fcf94e0e9 100644
--- a/bbs/confirm.php
+++ b/bbs/confirm.php
@@ -2,6 +2,10 @@
include_once('./_common.php');
include_once(G5_PATH.'/head.sub.php');
+$url1 = clean_xss_tags($url1);
+$url2 = clean_xss_tags($url2);
+$url3 = clean_xss_tags($url3);
+
// url 체크
check_url_host($url1);
check_url_host($url2);
diff --git a/bbs/move.php b/bbs/move.php
index e3a7d86f2..a4631addf 100644
--- a/bbs/move.php
+++ b/bbs/move.php
@@ -55,7 +55,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
-
+
diff --git a/bbs/new.php b/bbs/new.php
index bbf9ccf96..9e008e861 100644
--- a/bbs/new.php
+++ b/bbs/new.php
@@ -17,6 +17,8 @@ if ($view == "w")
$sql_common .= " and a.wr_id = a.wr_parent ";
else if ($view == "c")
$sql_common .= " and a.wr_id <> a.wr_parent ";
+else
+ $view = '';
$mb_id = isset($_GET['mb_id']) ? ($_GET['mb_id']) : '';
$mb_id = substr(preg_replace('#[^a-z0-9_]#i', '', $mb_id), 0, 20);
diff --git a/bbs/newwin.inc.php b/bbs/newwin.inc.php
index 3c3c8c127..e3f8aed55 100644
--- a/bbs/newwin.inc.php
+++ b/bbs/newwin.inc.php
@@ -13,14 +13,11 @@ $result = sql_query($sql, false);
팝업레이어 알림
diff --git a/bbs/register_email.php b/bbs/register_email.php
index 4345d4eea..e7fc92537 100644
--- a/bbs/register_email.php
+++ b/bbs/register_email.php
@@ -2,27 +2,28 @@
include_once('./_common.php');
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
+$g5['title'] = '메일인증 메일주소 변경';
+include_once('./_head.php');
+
+$mb_id = substr(clean_xss_tags($_GET['mb_id']), 0, 20);
$sql = " select mb_email, mb_datetime, mb_email_certify from {$g5['member_table']} where mb_id = '{$mb_id}' ";
$mb = sql_fetch($sql);
if (substr($mb['mb_email_certify'],0,1)!=0) {
alert("이미 메일인증 하신 회원입니다.", G5_URL);
}
-
-$g5['title'] = '메일인증 메일주소 변경';
-include_once('./_head.php');
?>
- 메일인증을 받지 못한 경우 회원정보의 메일주소를 변경 할 수 있습니다.
+ 메일인증을 받지 못한 경우 회원정보의 메일주소를 변경 할 수 있습니다.
|