From: Michael Vogel Date: Sun, 15 May 2016 08:36:56 +0000 (+0200) Subject: There were undecoded entities in the title X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=247f866655440bac8f3cd8b1eecdaeb08400ae3a;p=friendica.git There were undecoded entities in the title --- diff --git a/include/plaintext.php b/include/plaintext.php index 30ea5d9eed..559e0a0e83 100644 --- a/include/plaintext.php +++ b/include/plaintext.php @@ -128,10 +128,9 @@ function get_attachment_data($body) { if ($matches[1] != "") $title = $matches[1]; - //$title = htmlentities($title, ENT_QUOTES, 'UTF-8', false); $title = bbcode(html_entity_decode($title, ENT_QUOTES, 'UTF-8'), false, false, true); + $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8'); $title = str_replace(array("[", "]"), array("[", "]"), $title); - if ($title != "") $data["title"] = $title;