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:
parent
73ce09b73a
commit
5fe74cd394
@ -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()
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user