플래닛 링크 치환으로 인한 오류 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5381 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2009-01-16 06:51:57 +00:00
parent a7a5b73d7a
commit 0ac33595db

View file

@ -126,7 +126,7 @@
$obj->content = str_replace(array('<','>'),array('&lt;','&gt;'),$obj->content);
$obj->content = str_replace('...', '…', $obj->content);
$obj->content = str_replace('--', '—', $obj->content);
$obj->content = preg_replace('/"([^"]+)":([0-9]+)/ig', '<a href="'.Context::getRequestUri().'$2">$1</a>', $obj->content);
$obj->content = preg_replace('/"([^"]+)":([0-9]+)/i', '<a href="'.Context::getRequestUri().'$2">$1</a>', $obj->content);
$obj->content = preg_replace('/"([^"]+)":(http|ftp|https|mms)([^ ]+)/is','<a href="$2$3" onclick="window.open(this.href);return false;">$1</a>$4', $obj->content);
$oDocumentController = &getController('document');
$output = $oDocumentController->insertDocument($obj,$manual_inserted);