Introduce class Icinga\Module\Monitoring\Web\Helper\PluginOutputPurifier

This commit is contained in:
Johannes Meyer 2018-01-19 15:27:29 +01:00
parent ce428cb77d
commit 42b685d336
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
/* Icinga Web 2 | (c) 2018 Icinga Development Team | GPLv2+ */
namespace Icinga\Module\Monitoring\Web\Helper;
use Icinga\Web\Helper\HtmlPurifier;
class PluginOutputPurifier extends HtmlPurifier
{
protected function configure($config)
{
$config->set(
'HTML.Allowed',
'p,br,b,a[href|target],i,ul,ol,li,table,tr,th[colspan],td[colspan],div,*[class]'
);
}
}