mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
r17369091 포트를 계속 가지고 다니도록 Context::getRequestUri() 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4935 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
74a7775f99
commit
f25b582aaf
1 changed files with 7 additions and 2 deletions
|
|
@ -798,9 +798,14 @@
|
|||
if($domain) {
|
||||
$domain = preg_replace('/^(http|https):\/\//i','', trim($domain));
|
||||
if(substr($domain,-1) != '/') $domain .= '/';
|
||||
} else $domain = $_SERVER['HTTP_HOST'].getScriptPath();
|
||||
} else {
|
||||
$domain = preg_replace('/:'.$_SERVER['SERVER_PORT'].'$/','',$_SERVER['HTTP_HOST']).getScriptPath();
|
||||
}
|
||||
|
||||
$url[$ssl_mode] = sprintf("%s://%s",$use_ssl?'https':'http',$domain);
|
||||
$domain = sprintf("%s://%s",$use_ssl?'https':'http',$domain);
|
||||
|
||||
$url_info = parse_url($domain);
|
||||
$url[$ssl_mode] = sprintf("%s://%s%s%s",$url_info['scheme'], $url_info['host'], $_SERVER['SERVER_PORT']!==80?':'.$_SERVER['SERVER_PORT']:'',$url_info['path']);
|
||||
|
||||
return $url[$ssl_mode];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue