Use HTMLPurifier from the include path

refs #6165
refs #6166
This commit is contained in:
Eric Lippmann 2014-11-13 23:49:05 +01:00
parent 967492736b
commit 1f77ef069d
1 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,10 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
protected function getPurifier()
{
if (self::$purifier === null) {
require_once 'IcingaVendor/htmlpurifier-4.6.0-lite/library/HTMLPurifier.auto.php';
require_once 'HTMLPurifier/Bootstrap.php';
require_once 'HTMLPurifier/HTMLPurifier.php';
require_once 'HTMLPurifier/HTMLPurifier.autoload.php';
$config = HTMLPurifier_Config::createDefault();
$config->set('Core.EscapeNonASCIICharacters', true);
$config->set('HTML.Allowed', 'p,br,b,a[href],i,table,tr,td[colspan],div[class]');