get_editor_image 함수 정규식 패턴 변경
This commit is contained in:
@ -1763,7 +1763,7 @@ function get_editor_image($contents)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// $contents 중 img 태그 추출
|
// $contents 중 img 태그 추출
|
||||||
$pattern = "/<img[^>]*src=[\'\"]?([^>\'\"]+".str_replace(".", "\.", $_SERVER['HTTP_HOST'])."[^>\'\"]+)[\'\"]?[^>]*>/";
|
$pattern = "/<img[^>]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/";
|
||||||
preg_match_all($pattern, $contents, $matchs);
|
preg_match_all($pattern, $contents, $matchs);
|
||||||
|
|
||||||
return $matchs;
|
return $matchs;
|
||||||
|
|||||||
Reference in New Issue
Block a user