1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/14985] Decode HTML special chars in plain text columns

PHPBB3-14985
This commit is contained in:
JoshyPHP
2017-01-10 18:04:16 +01:00
parent 26c6cb819e
commit ef215f573e
2 changed files with 38 additions and 15 deletions

View File

@@ -333,8 +333,7 @@ class factory implements \phpbb\textformatter\cache_interface
$configurator->plugins->load('Censor', array('tagName' => 'censor:tag'));
foreach ($censor as $row)
{
// 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']));
$configurator->Censor->add($row['word'], $row['replacement']);
}
}