현재 접속 주소를 얻어오는 부분에서 SERVER_NAME이 아닌 HTTP_HOST를 이용하도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2289 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-10 03:03:01 +00:00
parent cc9c8e68d0
commit 9c6d7f6b1b

View file

@ -564,7 +564,7 @@
* @brief 요청이 들어온 URL에서 argument를 제거하여 return
**/
function getRequestUri() {
$hostname = $_SERVER['SERVER_NAME'];
$hostname = $_SERVER['HTTP_HOST'];
$port = $_SERVER['SERVER_PORT'];
if($port!=80) $hostname .= ":{$port}";
$path = str_replace('index.php','',$_SERVER['SCRIPT_NAME']);