1
1
Fork 0

There were undecoded entities in the title

This commit is contained in:
Michael Vogel 2016-05-15 10:36:56 +02:00
parent 1b2f67906b
commit 247f866655

View 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("[", "]"), $title);
if ($title != "")
$data["title"] = $title;