diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2017-01-10 18:04:16 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2017-01-12 09:30:52 +0100 |
commit | ef215f573e7540bd7f26d936de4108057f9b3225 (patch) | |
tree | 49422d22772389c9db61d15ec14f3a6ea89acb2a /phpBB/phpbb/textformatter/s9e/factory.php | |
parent | 26c6cb819eea5fe67d5df7b0af3f580848b953b6 (diff) | |
download | forums-ef215f573e7540bd7f26d936de4108057f9b3225.tar forums-ef215f573e7540bd7f26d936de4108057f9b3225.tar.gz forums-ef215f573e7540bd7f26d936de4108057f9b3225.tar.bz2 forums-ef215f573e7540bd7f26d936de4108057f9b3225.tar.xz forums-ef215f573e7540bd7f26d936de4108057f9b3225.zip |
[ticket/14985] Decode HTML special chars in plain text columns
PHPBB3-14985
Diffstat (limited to 'phpBB/phpbb/textformatter/s9e/factory.php')
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/factory.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index 55149b8e63..5cbf2712f7 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -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']); } } |