[icinga-checkins] icinga.org: icingaweb2/feature/redesign-7144: Use HTMLPurifier from the include path

git at icinga.org git at icinga.org
Fri Nov 14 21:46:39 CET 2014


Module: icingaweb2
Branch: feature/redesign-7144
Commit: 1f77ef069d22b28a1a07c5b68538ed6208268d73
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=1f77ef069d22b28a1a07c5b68538ed6208268d73

Author: Eric Lippmann <eric.lippmann at netways.de>
Date:   Thu Nov 13 23:49:05 2014 +0100

Use HTMLPurifier from the include path

refs #6165
refs #6166

---

 modules/monitoring/application/views/helpers/PluginOutput.php |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php
index 3cd36c4..575aaf0 100644
--- a/modules/monitoring/application/views/helpers/PluginOutput.php
+++ b/modules/monitoring/application/views/helpers/PluginOutput.php
@@ -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]');



More information about the icinga-checkins mailing list