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; } /**