From f340fc6efaa17c447f2784e5219c99b270c6b8fd Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 7 Oct 2022 08:00:09 +0000 Subject: [PATCH] Harmonized regular expression --- src/Content/Text/BBCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index bef48dcac8..93d1be2c44 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1021,7 +1021,7 @@ class BBCode public static function fetchShareAttributes(string $text): array { DI::profiler()->startRecording('rendering'); - if (preg_match('#(.*?)\[share](.*)\[/share]#', $text, $matches)) { + if (preg_match('~(.*?)\[share](.*)\[/share]~ism', $text, $matches)) { return [ 'author' => '', 'profile' => '',