From d429bb8d8c2511f05a034538cc1af3583b5154c8 Mon Sep 17 00:00:00 2001 From: Willowslab Date: Thu, 22 May 2014 22:06:07 +0900 Subject: [PATCH] Update wiki.view.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 특정한 상황 및 서버 상황에 따라 한글 엔트리 동작 여부가 불안정한 문제 수정 --- wiki.view.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/wiki.view.php b/wiki.view.php index d983424..a225461 100644 --- a/wiki.view.php +++ b/wiki.view.php @@ -98,7 +98,9 @@ function dispWikiHistory() $oDocumentModel = getModel('document'); $document_srl = Context::get('document_srl'); $page = Context::get('page'); - $entry = Context::get('entry'); + $entry = URLEncode( Context::get('entry') ); + $entry = URLDecode( $entry ); + $entry = iconv( "CP949", "UTF-8", $entry ); if(!$document_srl) { @@ -240,7 +242,9 @@ function dispWikiEditPage() $oDocumentModel = & getModel('document'); $document_srl = Context::get('document_srl'); - $entry = Context::get('entry'); + $entry = URLEncode( Context::get('entry') ); + $entry = URLDecode( $entry ); + $entry = iconv( "CP949", "UTF-8", $entry ); $section = Context::get('section'); if(!$document_srl) @@ -466,7 +470,10 @@ function dispWikiContentView() // The requested order parameter values $document_srl = Context::get('document_srl'); - $entry = Context::get('entry'); + $entry = URLEncode( Context::get('entry') ); + $entry = URLDecode( $entry ); + $entry = iconv( "CP949", "UTF-8", $entry ); + if(!$document_srl) { if(!$entry) @@ -953,7 +960,9 @@ function getLeftMenu() else { $document_srl = Context::get("document_srl"); - $entry = Context::get("entry"); + $entry = URLEncode( Context::get('entry') ); + $entry = URLDecode( $entry ); + $entry = iconv( "CP949", "UTF-8", $entry ); $root = $oWikiModel->getRootDocument($module_srl); if(!$document_srl) {