From: Friendika Date: Fri, 26 Aug 2011 03:09:32 +0000 (-0700) Subject: tweak to bbcode linkificator X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5eb08d43b6f78b1aec5f40d4a53725e713cfd9b5;p=friendica.git tweak to bbcode linkificator --- diff --git a/include/bbcode.php b/include/bbcode.php index 3619015ca9..6c26dabfeb 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\:\/\-\?\&\.\=\_\~\#\'\%\$\!\+\,]+)/", ' $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);