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:
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user