mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/11768] Updated censor to apply to XML values
PHPBB3-11768
This commit is contained in:
@@ -168,13 +168,14 @@ class renderer extends \phpbb\textformatter\renderer
|
|||||||
*/
|
*/
|
||||||
public function render($text)
|
public function render($text)
|
||||||
{
|
{
|
||||||
$html = $this->renderer->render($text);
|
|
||||||
|
|
||||||
if (isset($this->censor) && $this->viewcensors)
|
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()
|
* @see bbcode::bbcode_second_pass_code()
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user