mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
HTTP Request가 아닐때 XE 구동이 되면 request_uri에 대한 처리를 하지 않도록 Context::getRequestUri 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6036 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f6b78ec88c
commit
1ce3a67992
1 changed files with 5 additions and 5 deletions
|
|
@ -876,6 +876,9 @@
|
|||
* @brief 요청이 들어온 URL에서 argument를 제거하여 return
|
||||
**/
|
||||
function getRequestUri($ssl_mode = FOLLOW_REQUEST_SSL, $domain = null) {
|
||||
// HTTP Request가 아니면 패스
|
||||
if(!isset($_SERVER['SERVER_PROTOCOL'])) return ;
|
||||
|
||||
static $url = array();
|
||||
if(Context::get('_use_ssl') == "always") $ssl_mode = ENFORCE_SSL;
|
||||
|
||||
|
|
@ -905,14 +908,11 @@
|
|||
}
|
||||
|
||||
$url_info = parse_url('http://'.$target_url);
|
||||
if($use_ssl)
|
||||
{
|
||||
if($use_ssl) {
|
||||
if(Context::get("_https_port") && Context::get("_https_port") != 443) {
|
||||
$url_info['port'] = Context::get("_https_port");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
if(Context::get("_http_port") && Context::get("_http_port") != 80) {
|
||||
$url_info['port'] = Context::get("_http_port");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue