mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-11 14:32:14 +09:00
r6470 보완
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6471 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a8c8fcad56
commit
2bcc8886d2
1 changed files with 3 additions and 3 deletions
|
|
@ -883,13 +883,13 @@
|
|||
|
||||
// 항상 SSL을 이용하고 현재 SSL이 아닌 경우 https에 대한 prefix를 붙임
|
||||
if(Context::get('_use_ssl')=='always') {
|
||||
if($_SERVER['HTTPS']!='on') $query = substr($this->getRequestUri(ENFORCE_SSL, $domain),0,-1).$query;
|
||||
if($_SERVER['HTTPS']!='on') $query = $this->getRequestUri(ENFORCE_SSL, $domain).$query;
|
||||
// 상황에 따라 혹은 지정된 대상만 SSL 취급될 경우
|
||||
} else {
|
||||
// SSL상태인데 대상이 SSL이 아닌 경우
|
||||
if($_SERVER['HTTPS']=='on') $query = substr($this->getRequestUri(ENFORCE_SSL, $domain),0,-1).$query;
|
||||
if($_SERVER['HTTPS']=='on') $query = $this->getRequestUri(ENFORCE_SSL, $domain).$query;
|
||||
// SSL 상태가 아니면 domain값에 따라 query 완성
|
||||
else if($domain) $query = substr($this->getRequestUri(FOLLOW_REQUEST_SSL, $domain),0,-1).$query;
|
||||
else if($domain) $query = $this->getRequestUri(FOLLOW_REQUEST_SSL, $domain).$query;
|
||||
else $query = getScriptPath().$query;
|
||||
}
|
||||
return htmlspecialchars($query);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue