mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
#18591540 1바이트를 위한 개행문자(-) 제거
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7119 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
43a4e760c0
commit
e782b8e277
1 changed files with 0 additions and 11 deletions
|
|
@ -361,20 +361,9 @@
|
|||
// >, <, "를 다시 복구
|
||||
$content = str_replace(array('<','>','"'),array('<','>','"'), $content);
|
||||
|
||||
// 영문이 연결될 경우 개행이 안 되는 문제를 해결
|
||||
$content = preg_replace_callback('/([a-z0-9\+:\/\.\~,\|\!\@\#\$\%\^\&\*\(\)\_]){20,}/is',array(&$this,'_summaryReplace'),$content);
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
function _summaryReplace($matches){
|
||||
if(preg_match('/http(s?):\/\//is',$matches[0])){
|
||||
return $matches[0];
|
||||
}else{
|
||||
return preg_replace('/(.){20}/is',"$0-",$matches[0]);
|
||||
}
|
||||
}
|
||||
|
||||
function getRegdate($format = 'Y.m.d H:i:s') {
|
||||
return zdate($this->get('regdate'), $format);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue