From 1294ac19c826c4f94b1f7722a6d9ead6297dfb52 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 24 Jan 2018 21:37:12 +0000 Subject: [PATCH] Issue 4227: Make hash tags always local links --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);