aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/textformatter
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2017-07-03 16:06:50 +0200
committerJoshyPHP <s9e.dev@gmail.com>2017-07-03 16:06:50 +0200
commit329e5c5e052588b0f22c9046b9fbc19c9e551c81 (patch)
tree5236fda731289ee0b5b818555129af1db4afdf1a /phpBB/phpbb/textformatter
parentaef138d8bc2cc2c74bc9951d136c7bc1e0cf3ad7 (diff)
downloadforums-329e5c5e052588b0f22c9046b9fbc19c9e551c81.tar
forums-329e5c5e052588b0f22c9046b9fbc19c9e551c81.tar.gz
forums-329e5c5e052588b0f22c9046b9fbc19c9e551c81.tar.bz2
forums-329e5c5e052588b0f22c9046b9fbc19c9e551c81.tar.xz
forums-329e5c5e052588b0f22c9046b9fbc19c9e551c81.zip
[ticket/15261] Fix censoring HTML tags
PHPBB3-15261
Diffstat (limited to 'phpBB/phpbb/textformatter')
-rw-r--r--phpBB/phpbb/textformatter/s9e/renderer.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/renderer.php b/phpBB/phpbb/textformatter/s9e/renderer.php
index 9be20b7f53..6fcd2b0a98 100644
--- a/phpBB/phpbb/textformatter/s9e/renderer.php
+++ b/phpBB/phpbb/textformatter/s9e/renderer.php
@@ -247,14 +247,12 @@ class renderer implements \phpbb\textformatter\renderer_interface
$vars = array('renderer', 'xml');
extract($this->dispatcher->trigger_event('core.text_formatter_s9e_render_before', compact($vars)));
+ $html = $this->renderer->render($xml);
if (isset($this->censor) && $this->viewcensors)
{
- // NOTE: censorHtml() is XML-safe
- $xml = $this->censor->censorHtml($xml, true);
+ $html = $this->censor->censorHtml($html, true);
}
- $html = $this->renderer->render($xml);
-
/**
* Modify a rendered text
*