From: Friendika Date: Thu, 3 Feb 2011 02:09:27 +0000 (-0800) Subject: be more forgiving about the order of link parameters in html->bb X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=25c2640c17244aeb53020df83455a14ae245e831;p=friendica.git be more forgiving about the order of link parameters in html->bb --- diff --git a/include/html2bbcode.php b/include/html2bbcode.php index 65cbcec41f..6af8df824e 100644 --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -23,7 +23,7 @@ function html2bbcode($s) { '/\(.*?)\<\/div\>/is', '/\/is', '/\(.*?)\<\/strong\>/is', - '/\(.*?)\<\/a\>/is', + '/\(.*?)\<\/a\>/is', '/\(.*?)\<\/code\>/is', '/\(.*?)\<\/span\>/is', '/\(.*?)\<\/blockquote\>/is', @@ -48,7 +48,7 @@ function html2bbcode($s) { '$2', "\n", '[b]$1[/b]', - '[url=$1]$3[/url]', + '[url=$2]$4[/url]', '[code]$1[/code]', '[color="$1"]$2[/color]', '[quote]$1[/quote]',