Browse Source

There were undecoded entities in the title

pull/2514/head
Michael Vogel 4 years ago
parent
commit
247f866655
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      include/plaintext.php

+ 1
- 2
include/plaintext.php 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;


Loading…
Cancel
Save