XEXML로 data importing시에 에디터컴포넌트 - 이미지슬라이드로 작성된 이미지 경로가 제대로 적용되지 않는 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6046 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-04-07 08:38:36 +00:00
parent b610fe9f92
commit 64446591b2

View file

@ -568,6 +568,8 @@
if(count($files)) {
foreach($files as $key => $val) {
$obj->content = preg_replace('/(src|href)\=(["\']?)'.preg_quote($key).'(["\']?)/i','$1="'.$val.'"',$obj->content);
$obj->content = preg_replace('/(["\']?).\/files\/(.+)\/'.preg_quote($key).'([^"\']+)(["\']?)/i','"'.$val.'"',$obj->content);
$obj->content = preg_replace('/(["\']?)files\/(.+)\/'.preg_quote($key).'([^"\']+)(["\']?)/i','"'.$val.'"',$obj->content);
}
}