From e4a17902fde97c1e1506571e82ee3ff2438f0575 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 10 Feb 2014 11:02:39 +0900 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=20alt=20=EC=86=8D=EC=84=B1=20=EC=82=AC?= =?UTF-8?q?=EB=9D=BC=EC=A7=80=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/thumbnail.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index 3f71de35a..fcc9b7cc3 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -100,6 +100,8 @@ function get_view_thumbnail($contents, $thumb_width=0) $width = $m[1]; preg_match("/height:\s*(\d+)px/", $style, $m); $height = $m[1]; + preg_match("/alt=[\"\']?([^\"\']*)[\"\']?/", $img, $m); + $alt = get_text($m[1]); // 이미지 path 구함 $p = parse_url($src); @@ -165,8 +167,6 @@ function get_view_thumbnail($contents, $thumb_width=0) else $thumb_file = $filename; - preg_match("/alt=[\"\']?([^\"\']*)[\"\']?/", $img_tag, $malt); - $alt = get_text($malt[1]); if ($width) { $thumb_tag = ''.$alt.''; } else {