From 0055690e54a89e0baf2000320c7a36cf3e74a802 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 23 Mar 2018 15:40:35 +0900 Subject: [PATCH 1/3] =?UTF-8?q?alert.php=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/alert.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bbs/alert.php b/bbs/alert.php index dabe311f6..9d4475203 100644 --- a/bbs/alert.php +++ b/bbs/alert.php @@ -28,6 +28,7 @@ include_once(G5_PATH.'/head.sub.php'); // 파일만 가능합니다. // 공백이 없어야 합니다. +$msg = isset($msg) ? strip_tags($msg) : ''; $msg2 = str_replace("\\n", "
", $msg); $url = clean_xss_tags($url); @@ -36,7 +37,7 @@ if (!$url) $url = clean_xss_tags($_SERVER['HTTP_REFERER']); $url = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", $url); // url 체크 -check_url_host($url); +check_url_host($url, $msg); if($error) { $header2 = "다음 항목에 오류가 있습니다."; @@ -46,7 +47,7 @@ if($error) { ?>