From 2457b96f7d72d348cef9061f508662d6ddb91fec Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 6 Sep 2016 10:06:41 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=ED=94=88=20=EB=A6=AC=EB=8B=A4?= =?UTF-8?q?=EC=9D=B4=EB=A0=89=ED=8A=B8=20=EC=B7=A8=EC=95=BD=EC=A0=90(16-60?= =?UTF-8?q?3)=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/common.lib.php b/lib/common.lib.php index d25b1f1dd..082b2523f 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2981,6 +2981,11 @@ function check_url_host($url, $msg='', $return_url=G5_URL) $p = @parse_url($url); $host = preg_replace('/:[0-9]+$/', '', $_SERVER['HTTP_HOST']); + if(stripos($url, 'http:') !== false) { + if(!isset($p['scheme']) || !$p['scheme'] || !isset($p['host']) || !$p['host']) + alert('url 정보가 올바르지 않습니다.', $return_url); + } + if ((isset($p['scheme']) && $p['scheme']) || (isset($p['host']) && $p['host'])) { //if ($p['host'].(isset($p['port']) ? ':'.$p['port'] : '') != $_SERVER['HTTP_HOST']) { if ($p['host'] != $host) {