From: Friendika Date: Wed, 30 Mar 2011 23:18:59 +0000 (-0700) Subject: bug #29 - commas not linkified X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89e81862ec316ae41e616dd8b9ddeb6ab18193c7;p=friendica.git bug #29 - commas not linkified --- diff --git a/include/bbcode.php b/include/bbcode.php index 4caf187666..44f5714509 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -22,7 +22,7 @@ function bbcode($Text) { // Perform URL Search - $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%\$\!\+]+)/", ' $2', $Text); + $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%\$\!\+\,]+)/", ' $2', $Text); $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '$1', $Text); $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.+?)\[/url\])", '$2', $Text);