From: Michael Date: Sat, 21 May 2022 11:55:38 +0000 (+0000) Subject: Escape the "share" as well X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=087ad25c87a4276f6082c0d710dae603aab4909c;p=friendica.git Escape the "share" as well --- diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 77ca4dbe26..8a3eb3d570 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1952,7 +1952,7 @@ class BBCode * - #[url=][/url] * - [url=]#[/url] */ - self::performWithEscapedTags($text, ['url'], function ($text) use ($simple_html) { + self::performWithEscapedTags($text, ['url', 'share'], function ($text) use ($simple_html) { $text = preg_replace_callback("/(?:#\[url\=[^\[\]]*\]|\[url\=[^\[\]]*\]#)(.*?)\[\/url\]/ism", function($matches) use ($simple_html) { if ($simple_html == self::ACTIVITYPUB) { return '