mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#369 sapi type이 cgi일 경우 PATH_INFO 환경변수에서 경로를 구하도록 함. 그리고 index.php 파일을 제거할때 preg 정규표현식으로 대소문자 구별없이 제거하도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3514 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bd0ae1daef
commit
1dff2a4863
3 changed files with 9 additions and 6 deletions
|
|
@ -609,11 +609,7 @@
|
|||
* @brief 요청이 들어온 URL에서 argument를 제거하여 return
|
||||
**/
|
||||
function getRequestUri() {
|
||||
$hostname = $_SERVER['HTTP_HOST'];
|
||||
//$port = $_SERVER['SERVER_PORT'];
|
||||
//if($port!=80) $hostname .= ":{$port}";
|
||||
$path = str_replace('index.php','',$_SERVER['SCRIPT_NAME']);
|
||||
return sprintf("http://%s%s",$hostname,$path);
|
||||
return sprintf("http://%s%s",$_SERVER['HTTP_HOST'], getScriptPath());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue