From a21b9b53806e1612062c15ef716121b3ee92d4b4 Mon Sep 17 00:00:00 2001 From: taggon Date: Sun, 20 Dec 2009 08:37:10 +0000 Subject: [PATCH] =?UTF-8?q?#18417412=20#18045048=20=EC=99=B8=EB=B6=80=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=A7=81=ED=81=AC=20=EB=B3=80?= =?UTF-8?q?=ED=99=98=EC=8B=9C=20=ED=95=B4=EC=8B=9C=EB=A7=81=ED=81=AC(#)?= =?UTF-8?q?=EC=99=80=20=ED=85=9C=ED=94=8C=EB=A6=BF=20=EB=AC=B8=EB=B2=95({.?= =?UTF-8?q?.)=EC=9D=84=20=EA=B1=B4=EB=84=88=EB=9B=B0=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= 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@7058 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/opage/opage.view.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/opage/opage.view.php b/modules/opage/opage.view.php index 6469a3948..fdce5c37c 100644 --- a/modules/opage/opage.view.php +++ b/modules/opage/opage.view.php @@ -140,8 +140,9 @@ function _replacePath($matches) { $val = trim($matches[3]); - // 외부 또는 / 로 시작하는 경로라면 그냥 pass - if(preg_match('/^(http|https|ftp|telnet|mms|mailto|\/)/i',$val)) return $matches[0]; + // 외부 또는 /, #, { 로 시작하는 경로라면 그냥 pass + // /=absolute path, #=hash in a page, {=Template syntax + if(preg_match('@^((?:http|https|ftp|telnet|mms)://|(?:mailto|javascript):|[/#{])@i',$val)) return $matches[0]; // .. 와 같은 경우 대상 경로를 구함 elseif(preg_match('/^(\.\.)/i',$val)) {