From 25af73bee859f505f21464d2ee124de44f7abebd Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 21 Jul 2014 13:25:51 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=EC=BD=94=EB=93=9C=EC=97=90=EC=84=9C=20HTTP=5FHOST=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 4a6a4d37d..ba387c86f 100644 --- a/common.php +++ b/common.php @@ -35,7 +35,7 @@ function g5_path() $port = $_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : ''; $http = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ? 's' : '') . '://'; $user = str_replace(str_replace($document_root, '', $_SERVER['SCRIPT_FILENAME']), '', $_SERVER['SCRIPT_NAME']); - $result['url'] = $http.$_SERVER['SERVER_NAME'].$port.$user.$root; + $result['url'] = $http.$_SERVER['HTTP_HOST'].$port.$user.$root; return $result; }