From: Friendika Date: Fri, 26 Aug 2011 03:12:56 +0000 (-0700) Subject: one more little tweak to linkificator X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c15c53d307f1b298e6140e33dfbd859a68d0b5f9;p=friendica.git one more little tweak to linkificator --- diff --git a/include/bbcode.php b/include/bbcode.php index 6c26dabfeb..c05c369388 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -41,7 +41,7 @@ function bbcode($Text,$preserve_nl = false) { // Perform URL Search - $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\%\$\!\+\,]+)/", ' $1$2', $Text); + $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\%\$\!\+\,]+)/", '$1$2', $Text); $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '$1', $Text); $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.*?)\[/url\])", '$2', $Text);