From 1e13e8f8a3f6e80cf42587e58f45664a2363586e Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 May 2015 17:10:14 +0900 Subject: [PATCH] =?UTF-8?q?check=5Furl=5Fhost=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=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, 4 insertions(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index e652637cb..cf28863a3 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2852,8 +2852,11 @@ function check_url_host($url, $msg='', $return_url=G5_URL) $msg = 'url에 타 도메인을 지정할 수 없습니다.'; $p = parse_url($url); + $host = preg_replace('/:[0-9]+$/', '', $_SERVER['HTTP_HOST']); + 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'].(isset($p['port']) ? ':'.$p['port'] : '') != $_SERVER['HTTP_HOST']) { + if ($p['host'] != $host) { echo '