]> git.mxchange.org Git - friendica.git/commitdiff
Escape the "share" as well
authorMichael <heluecht@pirati.ca>
Sat, 21 May 2022 11:55:38 +0000 (11:55 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 21 May 2022 11:55:38 +0000 (11:55 +0000)
src/Content/Text/BBCode.php

index 77ca4dbe267aa1f765554e55771c8da1856fe1b7..8a3eb3d570f540fbc25666a8ab7f6c4789b456b7 100644 (file)
@@ -1952,7 +1952,7 @@ class BBCode
                                 * - #[url=<anything>]<term>[/url]
                                 * - [url=<anything>]#<term>[/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 '<a href="' . DI::baseUrl() . '/search?tag=' . rawurlencode($matches[1])