#18417412 #18045048 외부 페이지 링크 변환시 해시링크(#)와 템플릿 문법({..)을 건너뛰도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7058 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2009-12-20 08:37:10 +00:00
parent 8bb8195226
commit a21b9b5380

View file

@ -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)) {