no message

This commit is contained in:
kuaifan
2024-11-21 09:30:08 +08:00
parent ec8d48292e
commit 906d87f43f
5 changed files with 7 additions and 7 deletions

View File

@@ -876,7 +876,7 @@ class Base
*/
public static function formatContentImg($content)
{
$pattern = '/<img(.*?)src=("|\')(.*?)\2/is';
$pattern = '/<img([^>]*?)src=(["\'])([^"\']+?)\2/i';
if (preg_match($pattern, $content)) {
preg_match_all($pattern, $content, $matchs);
foreach ($matchs[3] as $index => $value) {