diff --git a/adm/contentform.php b/adm/contentform.php
index 7ebe8bf01..6217e4603 100644
--- a/adm/contentform.php
+++ b/adm/contentform.php
@@ -109,8 +109,8 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
diff --git a/adm/menu_list_update.php b/adm/menu_list_update.php
index 4244d3343..324f26209 100644
--- a/adm/menu_list_update.php
+++ b/adm/menu_list_update.php
@@ -23,7 +23,7 @@ for ($i=0; $i<$count; $i++)
$code = $_POST['code'][$i];
$me_name = $_POST['me_name'][$i];
- $me_link = preg_match('/^javascript/', $_POST['me_link'][$i]) ? G5_URL : strip_tags($_POST['me_link'][$i]);
+ $me_link = preg_match('/^javascript/i', $_POST['me_link'][$i]) ? G5_URL : strip_tags($_POST['me_link'][$i]);
if(!$code || !$me_name || !$me_link)
continue;
diff --git a/bbs/confirm.php b/bbs/confirm.php
index fcf94e0e9..a80f5eab1 100644
--- a/bbs/confirm.php
+++ b/bbs/confirm.php
@@ -2,9 +2,9 @@
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);
+$url1 = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", clean_xss_tags($url1));
+$url2 = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", clean_xss_tags($url2));
+$url3 = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", clean_xss_tags($url3));
// url 체크
check_url_host($url1);
diff --git a/bbs/member_confirm.php b/bbs/member_confirm.php
index 722a78302..e3fc28498 100644
--- a/bbs/member_confirm.php
+++ b/bbs/member_confirm.php
@@ -24,10 +24,15 @@ include_once('./_head.sub.php');
// url 체크
check_url_host($url, '', G5_URL, true);
-if( preg_match('#^/{3,}#', $url) ){
- $url = preg_replace('#^/{3,}#', '/', $url);
+if($url){
+ $url = preg_replace('#^/\\\{1,}#', '/', $url);
+
+ if( preg_match('#^/{3,}#', $url) ){
+ $url = preg_replace('#^/{3,}#', '/', $url);
+ }
}
+
$url = get_text($url);
include_once($member_skin_path.'/member_confirm.skin.php');
diff --git a/bbs/new_delete.php b/bbs/new_delete.php
index 45341a244..6791e33e3 100644
--- a/bbs/new_delete.php
+++ b/bbs/new_delete.php
@@ -128,7 +128,7 @@ for($i=0;$i]*+>#i', '', $str);
+ $str = str_replace(array('',''), '', $str);
+
return $str;
}
diff --git a/plugin/lgxpay/AuthOnlyReq.php b/plugin/lgxpay/AuthOnlyReq.php
index f8c42b1b6..571d7d9c9 100644
--- a/plugin/lgxpay/AuthOnlyReq.php
+++ b/plugin/lgxpay/AuthOnlyReq.php
@@ -165,6 +165,8 @@ $_SESSION['lgd_certify'] = $payReqMap;
$value) {
+ $key = htmlspecialchars(strip_tags($key));
+ $value = htmlspecialchars(strip_tags($value));
echo "".PHP_EOL;
}
?>
diff --git a/plugin/lgxpay/returnurl.php b/plugin/lgxpay/returnurl.php
index e0cd0a37b..b40e8940e 100644
--- a/plugin/lgxpay/returnurl.php
+++ b/plugin/lgxpay/returnurl.php
@@ -57,6 +57,8 @@ $payReqMap = $_SESSION['lgd_certify'];//결제 요청시, Session에 저장했