#17632578 * planet 작성시 퍼머링크 자동변환 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5354 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2009-01-14 06:02:31 +00:00
parent 25aa73dca7
commit b5f22581d4

View file

@ -126,7 +126,8 @@
$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('/"([^"]*)":(http|ftp|https|mms)([^ ]+)/is','<a href="$2$3" onclick="window.open(this.href);return false;">$1</a>$4', $obj->content);
$obj->content = preg_replace('/"([^"]+)":([0-9]+)/ig', '<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);
if(!$output->toBool()) return $output;