From 5e2bb874c847b576c79eb648e5bd45319688cfdb Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 14 Jun 2022 23:19:09 +0200 Subject: Fix Opengraph images inside zmg opening tag --- include/opengraph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/opengraph.php') diff --git a/include/opengraph.php b/include/opengraph.php index 465acbd39..f62970c5d 100644 --- a/include/opengraph.php +++ b/include/opengraph.php @@ -21,7 +21,7 @@ $ogtitle = $item['title']; // find first image if exist - if(preg_match("/\[[zi]mg(=[0-9]+x[0-9]+)?\]([^\[]+)/is", $item['body'], $matches)) { + if (preg_match("/\[[zi]mg(=[0-9]+x[0-9]+)?\]([^\[]+)/is", $item['body'], $matches) || preg_match("/\[[zi]mg(=)([^\]]+)/is", $item['body'], $matches)) { $ogimage = $matches[2]; $ogimagetype = guess_image_type($ogimage); } -- cgit v1.2.3