r17369091 포트를 계속 가지고 다니도록 Context::getRequestUri() 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4935 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-11-20 04:04:09 +00:00
parent 74a7775f99
commit f25b582aaf

View file

@ -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];
}