에디터로 첨부된 이미지의 alt 값 구하는 정규식 수정

This commit is contained in:
chicpro
2013-03-20 18:08:10 +09:00
parent ee456e5e4c
commit cc9dcca29e

View File

@ -44,7 +44,7 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_
$filename = basename($srcfile);
$filepath = dirname($srcfile);
preg_match("/alt=[\'\"]{1}(.*)[\'\"]{1}/", $matchs[0][$i], $malt);
preg_match("/alt=[\"\']?([^\"\']*)[\"\']?/", $matchs[0][$i], $malt);
$alt = get_text($malt[1]);
break;