1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15261] Fix censoring HTML tags

PHPBB3-15261
This commit is contained in:
JoshyPHP
2017-07-03 16:06:50 +02:00
parent aef138d8bc
commit 329e5c5e05
6 changed files with 27 additions and 15 deletions

View File

@@ -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
*