장문의 글이 수정되지 않던 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5964 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-03-25 07:55:32 +00:00
parent fbb92e4b52
commit 659b42d81f

View file

@ -1362,10 +1362,12 @@
$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);
$content = preg_replace('/<(img|br)([^>\/]*)(\/>|>)/i','<$1$2 />', $content);
// templateHandler의 이미지 경로로 인하여 생기는 절대경로 이미지등의 경로 중복 처리
$content = preg_replace('/<(img|input)([^>]*)src=(["|\']?)http:\/\/([^ ]+)http:\/\//is','<$1$2src=$3http://', $content);
//$content = preg_replace('/<(img|input)([^>]*)src=(["|\']?)http:\/\/([^ ]+)http:\/\//is','<$1$2src=$3http://', $content);
$content = preg_replace('/src=(["|\']?)http:\/\/([^ ]+)http:\/\//is','src=$1http://', $content);
return $content;
}