Skip to content

Commit

Permalink
[ticket/11768] Updated censor to apply to XML values
Browse files Browse the repository at this point in the history
PHPBB3-11768
  • Loading branch information
JoshyPHP committed Mar 2, 2015
1 parent f63fbe6 commit 9a700f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions phpBB/phpbb/textformatter/s9e/renderer.php
Expand Up @@ -168,13 +168,14 @@ public function get_viewsmilies()
*/
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()
*/
Expand Down

0 comments on commit 9a700f9

Please sign in to comment.