From bb5421d9253da0cbe587fe542df540ae6e3c06c4 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 20 Apr 2016 00:12:27 +0200 Subject: [PATCH] Bugfix: The function to remove parts of attachments forgot about the rest --- include/bbcode.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/bbcode.php b/include/bbcode.php index b2c278013d..8f19566b58 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -94,17 +94,17 @@ function bb_remove_share_information($Text, $plaintext = false, $nolink = false) return $Text; if ($nolink) - return $data["text"]; + return $data["text"].$data["after"]; if ($plaintext) $data["title"] = $data["url"]; if (($data["text"] == "") AND ($data["title"] != "") AND ($data["url"] == "")) - return $data["title"]; + return $data["title"].$data["after"]; // If the link already is included in the post, don't add it again if (($data["url"] != "") AND strpos($data["text"], $data["url"])) - return $data["text"]; + return $data["text"].$data["after"]; $text = $data["text"]; @@ -113,7 +113,7 @@ function bb_remove_share_information($Text, $plaintext = false, $nolink = false) elseif (($link != "")) $text .= "\n".$data["url"]; - return $text; + return $text.$data["after"]; } function bb_cleanstyle($st) { -- 2.39.5