From 96bf5673f24cc550f4d223d817c8e47fa812c706 Mon Sep 17 00:00:00 2001 From: zero Date: Fri, 2 Nov 2007 01:19:00 +0000 Subject: [PATCH] =?UTF-8?q?=EC=8D=B8=EB=84=A4=EC=9D=BC=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=EC=8B=9C=20=EB=B9=88=20=EC=9D=B4=EB=AF=B8=EC=A7=80?= =?UTF-8?q?=EB=9D=BC=EB=93=A0=EC=A7=80=20zbxe=20=EA=B8=B0=EB=B3=B8=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=EC=9D=98=20=EA=B2=BD=EC=9A=B0=20?= =?UTF-8?q?=EC=8D=B8=EB=84=A4=EC=9D=BC=EC=9D=B4=20=EC=97=86=EB=8B=A4?= =?UTF-8?q?=EA=B3=A0=20=ED=8C=90=EB=8B=A8=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2899 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/document/document.item.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/modules/document/document.item.php b/modules/document/document.item.php index 66a481078..f3ea340f0 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -382,25 +382,27 @@ // 첨부파일이 없으면 내용에서 추출 $content = $this->get('content'); + $target_src = null; preg_match_all("!http:\/\/([^ ^\"^']*?)\.(jpg|png|gif|jpeg)!is", $content, $matches, PREG_SET_ORDER); for($i=0;$ithumbnail_type); + @unlink($tmp_file); + return Context::getRequestUri().$thumbnail_file; } - FileHandler::createImageFile($tmp_file, $thumbnail_file, $width, $height, 'jpg', $config->thumbnail_type); - @unlink($tmp_file); - - return Context::getRequestUri().$thumbnail_file; + FileHandler::writeFile($thumbnail_file,''); + return; } /**