X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fbbcode.php;h=2715334e46b0712f39aa5e2f514eedc81599c81c;hb=4aac140749c4d9244da424b597bc0a7144c1ba6e;hp=2a70f95e59ee4fe159d3119b25558d92c8350507;hpb=a8136898b40edb98f7d0eab0024639d4719057cd;p=friendica.git diff --git a/include/bbcode.php b/include/bbcode.php index 2a70f95e59..2715334e46 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -63,7 +63,7 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) { (similar_text($test1,$test2) / strlen($data["title"])) > 0.9)) { $title2 = $data["url"]; } - $text = sprintf('%s
', + $text = sprintf('%s
', $data["url"], $data["title"], $title2); } elseif (($simplehtml != 4) AND ($simplehtml != 0)) { $text = sprintf('%s
', $data["url"], $data["title"]); @@ -97,7 +97,7 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) { } } } - return $data["text"] . $text . $data["after"]; + return trim($data["text"].' '.$text.' '.$data["after"]); } function bb_remove_share_information($Text, $plaintext = false, $nolink = false) {