mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
템플릿 핸들러 참고해서 핸들러에서 경로 바꾸는 이미지만 경로 수정하게 수정.(이전에 템플릿 핸들러를 수정했어야 하는 것은 아닌지.... 아무튼.. 수정) git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5957 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0919ae7e03
commit
2ab2bce53a
3 changed files with 4 additions and 4 deletions
|
|
@ -1362,10 +1362,10 @@
|
|||
$content = preg_replace_callback('!<style(.*?)<\/style>!is', array($this,'moveStyleToHeader'), $content);
|
||||
|
||||
// <img|br> 코드 변환
|
||||
$content = preg_replace('/<(img|br)([^>\/]*)(\/>|>)/i','<$1$2 />', $content);
|
||||
$content = preg_replace('/<(img|br)([^>]*)(\/>|>)/i','<$1$2 />', $content);
|
||||
|
||||
// templateHandler의 이미지 경로로 인하여 생기는 절대경로 이미지등의 경로 중복 처리
|
||||
$content = preg_replace('/src=(["|\']?)http:\/\/([^ ]+)http:\/\//is','src=$1http://', $content);
|
||||
$content = preg_replace('/<(img|input)([^>]*)src=(["|\']?)http:\/\/([^ ]+)http:\/\//is','<$1$2src=$3http://', $content);
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue