From c5b505c625eef88ed2c39d28cbfd0c99c949780b Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 21 Feb 2013 18:12:26 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EB=94=94=ED=84=B0=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=20=EC=B6=94=EC=B6=9C=EC=9D=84=20get=5Feditor?= =?UTF-8?q?=5Fimage()=20=ED=95=A8=EC=88=98=EB=A1=9C=20=EB=8C=80=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/thumbnail.lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index 2be693017..6abbc21d8 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -30,8 +30,7 @@ function get_view_thumbnail($contents) } // $contents 중 img 태그 추출 - $pattern = "/]*src=[\'\"]?([^>\'\"]+".str_replace(".", "\.", $_SERVER['HTTP_HOST'])."[^>\'\"]+)[\'\"]?[^>]*>/"; - preg_match_all($pattern, $contents, $matchs); + $matchs = get_editor_image($contents); for($i=0; $i