]> git.mxchange.org Git - friendica.git/commitdiff
There were undecoded entities in the title
authorMichael Vogel <icarus@dabo.de>
Sun, 15 May 2016 08:36:56 +0000 (10:36 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 15 May 2016 08:36:56 +0000 (10:36 +0200)
include/plaintext.php

index 30ea5d9eeda719f177052dac89d535b133c3be2b..559e0a0e83e13a0fc7d4cfa387a5ad13284c7e2d 100644 (file)
@@ -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("&#91;", "&#93;"), $title);
-
        if ($title != "")
                $data["title"] = $title;