From: Michael Date: Fri, 7 Oct 2022 08:00:09 +0000 (+0000) Subject: Harmonized regular expression X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f340fc6efaa17c447f2784e5219c99b270c6b8fd;p=friendica.git Harmonized regular expression --- 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' => '',