From 2bcc8886d26e0b6b30da04f8a6699eaacf2c93df Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 3 Jun 2009 07:25:52 +0000 Subject: [PATCH] =?UTF-8?q?r6470=20=EB=B3=B4=EC=99=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6471 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/context/Context.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index 9922d3f17..5b69f1e06 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -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);