mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
현재 접속 주소를 얻어오는 부분에서 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:
parent
cc9c8e68d0
commit
9c6d7f6b1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue