#17951219 : Fixed a problem of getting uri occurred when using not-default port of ssl(443) or http(80)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6272 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-05-04 11:44:01 +00:00
parent 82bf0f7c72
commit 43f9ba9aaa

View file

@ -922,10 +922,18 @@
if(Context::get("_https_port") && Context::get("_https_port") != 443) {
$url_info['port'] = Context::get("_https_port");
}
else
{
unset($url_info['port']);
}
} else {
if(Context::get("_http_port") && Context::get("_http_port") != 80) {
$url_info['port'] = Context::get("_http_port");
}
else
{
unset($url_info['port']);
}
}
$url[$ssl_mode][$domain_key] = sprintf("%s://%s%s%s",$use_ssl?'https':$url_info['scheme'], $url_info['host'], $url_info['port']&&$url_info['port']!=80?':'.$url_info['port']:'',$url_info['path']);