diff --git a/lib/common.lib.php b/lib/common.lib.php
index 62146cad1..9d9299335 100644
--- a/lib/common.lib.php
+++ b/lib/common.lib.php
@@ -2000,14 +2000,16 @@ function delete_board_thumbnail($bo_table, $file)
}
// 에디터 이미지 얻기
-function get_editor_image($contents)
+function get_editor_image($contents, $view=true)
{
if(!$contents)
return false;
// $contents 중 img 태그 추출
- //$pattern = "/
]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/";
- $pattern = "/
]*)>/iS";
+ if ($view)
+ $pattern = "/
]*)>/iS";
+ else
+ $pattern = "/
]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/";
preg_match_all($pattern, $contents, $matchs);
return $matchs;
diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php
index 5920105d1..caf04acc1 100644
--- a/lib/thumbnail.lib.php
+++ b/lib/thumbnail.lib.php
@@ -22,7 +22,7 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_
$write_table = $g5['write_prefix'].$bo_table;
$sql = " select wr_content from $write_table where wr_id = '$wr_id' ";
$write = sql_fetch($sql);
- $matches = get_editor_image($write['wr_content']);
+ $matches = get_editor_image($write['wr_content'], false);
$edt = true;
for($i=0; $i