mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11768] Fixed censored words being escaped twice
PHPBB3-11768
This commit is contained in:
parent
c1ba3a678d
commit
73ce09b73a
1 changed files with 2 additions and 1 deletions
|
@ -274,7 +274,8 @@ class factory implements \phpbb\textformatter\cache
|
||||||
$configurator->plugins->load('Censor', array('tagName' => 'censor:tag'));
|
$configurator->plugins->load('Censor', array('tagName' => 'censor:tag'));
|
||||||
foreach ($censor as $row)
|
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']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue