[ticket/11768] Fixed censored words being escaped twice

PHPBB3-11768
This commit is contained in:
JoshyPHP 2015-02-23 19:34:10 +01:00
parent c1ba3a678d
commit 73ce09b73a

View file

@ -274,7 +274,8 @@ class factory implements \phpbb\textformatter\cache
$configurator->plugins->load('Censor', array('tagName' => 'censor:tag'));
foreach ($censor as $row)
{
$configurator->Censor->add($row['word'], $row['replacement']);
// NOTE: words are stored as HTML, we need to decode them to plain text
$configurator->Censor->add(htmlspecialchars_decode($row['word']), htmlspecialchars_decode($row['replacement']));
}
}