From: Michael Date: Wed, 24 Jan 2018 21:37:12 +0000 (+0000) Subject: Issue 4227: Make hash tags always local links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1294ac19c826c4f94b1f7722a6d9ead6297dfb52;p=friendica.git Issue 4227: Make hash tags always local links --- diff --git a/include/bbcode.php b/include/bbcode.php index df883eed64..3731e7f449 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1049,7 +1049,7 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $simplehtml = fa $Text = preg_replace($expression, System::baseUrl()."/display/$1", $Text); $Text = preg_replace("/([#])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", - '$1$3', $Text); + '$1$3', $Text); $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/ism", '$1', $Text); $Text = preg_replace("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '$2', $Text);