From bed4799728dc3ef46340732b9a28e941c4d4208f Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 3 May 2016 21:57:08 +0200 Subject: [PATCH] Some more beautification. --- include/bbcode.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/bbcode.php b/include/bbcode.php index 62ee4da90c..c5c93ca64e 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -103,9 +103,12 @@ function bb_remove_share_information($Text, $plaintext = false, $nolink = false) $title = htmlentities($data["title"], ENT_QUOTES, 'UTF-8', false); $text = htmlentities($data["text"], ENT_QUOTES, 'UTF-8', false); - if ($plaintext or strstr($text, $title)) $data["title"] = $data["url"]; + elseif (strstr($title, $text)) { + $data["text"] = $data["title"]; + $data["title"] = $data["url"]; + } if (($data["text"] == "") AND ($data["title"] != "") AND ($data["url"] == "")) return $data["title"].$data["after"]; -- 2.39.5