get_editor_image 함수에서 대소문자 구분하지 않도록 수정
This commit is contained in:
@ -2045,7 +2045,7 @@ function get_editor_image($contents, $view=true)
|
||||
if ($view)
|
||||
$pattern = "/<img([^>]*)>/iS";
|
||||
else
|
||||
$pattern = "/<img[^>]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/";
|
||||
$pattern = "/<img[^>]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/i";
|
||||
preg_match_all($pattern, $contents, $matchs);
|
||||
|
||||
return $matchs;
|
||||
|
||||
Reference in New Issue
Block a user