본문내 자동링크 부분 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3446 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-12-31 03:04:33 +00:00
parent 3148047908
commit 335629588f

View file

@ -219,7 +219,7 @@
$content = $this->get('content');
// url에 대해서 정규표현식으로 치환
$content = preg_replace('!([^>^"^\'^=]?)(http|https|ftp|mms):\/\/([^ ^<^"^\']*)!is','$1<a href="$2://$3" onclick="window.open(this.href);return false;">$2://$3</a>',' '.$content);
$content = preg_replace('!([^>^"^\'^=])(http|https|ftp|mms):\/\/([^ ^<^"^\']*)!is','$1<a href="$2://$3" onclick="window.open(this.href);return false;">$2://$3</a>',' '.$content);
// 추가 정보 출력을 하지 않는 경우
if(!$add_document_info) {