이미지 경로 변경 코드가 쌍따옴표/홑따옴표에 대한 처리가 없어서 생기는 오류 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6121 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-04-15 09:51:30 +00:00
parent 5982f21e1a
commit c17c78ee06

View file

@ -109,7 +109,7 @@
$real_path = $url['path'];
$pattern = '/src=("|\'){1}(\.\/)?(files\/attach|files\/cache|files\/faceOff|files\/member_extra_info|modules|common|widgets|widgetstyle|layouts|addons)\/([^"\']+)\.(jpg|jpeg|png|gif)("|\'){1}/s';
$output = preg_replace($pattern, 'src="'.$real_path.'$3/$4.$5"', $output);
$output = preg_replace($pattern, 'src=$1'.$real_path.'$3/$4.$5$6', $output);
}
// 사용자 정의 언어 변환