#88 getRequestUri() 함수에서 HTTP_HOST사용시 80번 이외의 포트값이 자동으로 연결되기에 SERVER_PORT 연결하지 않도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2365 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-21 08:50:53 +00:00
parent 0c749854f4
commit dda8a1082d

View file

@ -565,8 +565,8 @@
**/
function getRequestUri() {
$hostname = $_SERVER['HTTP_HOST'];
$port = $_SERVER['SERVER_PORT'];
if($port!=80) $hostname .= ":{$port}";
//$port = $_SERVER['SERVER_PORT'];
//if($port!=80) $hostname .= ":{$port}";
$path = str_replace('index.php','',$_SERVER['SCRIPT_NAME']);
return sprintf("http://%s%s",$hostname,$path);
}