1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 20:13:22 +01:00

[ticket/11768] Updated censor to apply to XML values

PHPBB3-11768
This commit is contained in:
JoshyPHP 2015-02-23 19:35:49 +01:00
parent 73ce09b73a
commit 5fe74cd394

View File

@ -168,13 +168,14 @@ class renderer extends \phpbb\textformatter\renderer
*/
public function render($text)
{
$html = $this->renderer->render($text);
if (isset($this->censor) && $this->viewcensors)
{
$html = $this->censor->censorHtml($html, true);
// NOTE: censorHtml() is XML-safe
$text = $this->censor->censorHtml($text, true);
}
$html = $this->renderer->render($text);
/**
* @see bbcode::bbcode_second_pass_code()
*/