Merge branch 'g5'

This commit is contained in:
chicpro
2014-10-14 09:03:04 +09:00

View File

@ -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;