diff --git a/include/api.php b/include/api.php index c3d38e7dd2..3f6216c173 100644 --- a/include/api.php +++ b/include/api.php @@ -3249,7 +3249,6 @@ $include_entities = strtolower(x($_REQUEST,'include_entities')?$_REQUEST['include_entities']:"false"); $Text = bb_CleanPictureLinks($Text); - $URLSearchString = "^\[\]"; $Text = preg_replace("/([!#@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",'$1$3',$Text); @@ -3288,6 +3287,8 @@ if (isset($data["url"])) $body .= "\n".$data["url"]; + $body .= $data["after"]; + return $body; }