mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
서명에서 br이나 img등이 닫혀있지 않는 오류 수정
아울러 editor_component의 처리가 되지 않으므로 XHTML 구문상 오류를 수정 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2470 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
da57c5a10e
commit
d54fdf30bb
1 changed files with 12 additions and 1 deletions
|
|
@ -1226,9 +1226,20 @@
|
|||
// 서명이 없으면 빈 내용을 등록
|
||||
if(!$signature) {
|
||||
$GLOBALS['_transSignatureList'][$member_srl] = null;
|
||||
|
||||
|
||||
// 서명이 있으면 글의 내용 다음에 추가
|
||||
} else {
|
||||
$oContext = &Context::getInstance();
|
||||
|
||||
$signature = preg_replace_callback('!<div([^\>]*)editor_component=([^\>]*)>(.*?)\<\/div\>!is', array($oContext, '_transEditorComponent'), $signature);
|
||||
$signature = preg_replace_callback('!<img([^\>]*)editor_component=([^\>]*?)\>!is', array($oContext, '_transEditorComponent'), $signature);
|
||||
|
||||
// <br> 코드 변환
|
||||
$signature = preg_replace('/<br([^>\/]*)(\/>|>)/i','<br$1 />', $signature);
|
||||
|
||||
// <img ...> 코드를 <img ... /> 코드로 변환
|
||||
$signature = preg_replace('/<img(.*?)(\/){0,1}>/i','<img$1 />', $signature);
|
||||
|
||||
$document = $matches[0].'<div class="member_signature">'.$signature.'</div>';
|
||||
$GLOBALS['_transSignatureList'][$member_srl] = $document;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue