From 40660efbe077f3a48c3dddae927483f8997e5fb0 Mon Sep 17 00:00:00 2001 From: bnu Date: Fri, 12 Jun 2009 12:42:21 +0000 Subject: [PATCH] =?UTF-8?q?#18070021=20*=20=EC=99=B8=EB=B6=80=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EB=A7=81=ED=81=AC=20=EB=B3=80=EC=A1=B0?= =?UTF-8?q?=EB=90=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=20=20*=20by=20=EB=B0=B1=EC=84=B1=EC=B0=AC=EB=8B=98?= 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@6533 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/opage/opage.view.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/opage/opage.view.php b/modules/opage/opage.view.php index 1a18ce002..15be7c102 100644 --- a/modules/opage/opage.view.php +++ b/modules/opage/opage.view.php @@ -43,7 +43,7 @@ // 결과 출력 템플릿 지정 $this->setTemplateFile('content'); } - + /** * @brief 외부 http로 요청되는 파일일 경우 파일을 받아와서 저장 후 return **/ @@ -60,7 +60,7 @@ $content = FileHandler::readFile($cache_file); } - + // opage controller 생성 $oOpageController = &getController('opage'); @@ -92,7 +92,7 @@ **/ function executeFile($path, $caching_interval, $cache_file) { // 파일이 없으면 취소 - if(!file_exists($path)) return; + if(!file_exists($path)) return; // 경로와 파일이름을 구함 $tmp_path = explode('/',$cache_file); @@ -140,8 +140,8 @@ function _replacePath($matches) { $val = trim($matches[3]); - // http 또는 / 로 시작하는 경로라면 그냥 pass - if(preg_match('/^(http|\/)/i',$val)) return $matches[0]; + // 외부링크 또는 / 로 시작하는 경로라면 그냥 pass + if(preg_match('/^(http|https|ftp|telnet|mms|\/)/i',$val)) return $matches[0]; // .. 와 같은 경우 대상 경로를 구함 elseif(preg_match('/^(\.\.)/i',$val)) {