mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#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:
parent
0c749854f4
commit
dda8a1082d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue