[icinga-checkins] icinga.org: icingaweb2/master: Allow style classes in plugin output

git at icinga.org git at icinga.org
Thu Feb 25 17:09:44 CET 2016


Module: icingaweb2
Branch: master
Commit: 4751df692dbb18b05f0434668cd48fbc0093400c
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=4751df692dbb18b05f0434668cd48fbc0093400c

Author: Alexander A. Klimov <alexander.klimov at netways.de>
Date:   Thu Feb 25 17:08:10 2016 +0100

Allow style classes in plugin output

resolves #11062

---

 modules/monitoring/application/views/helpers/PluginOutput.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php
index 1ccc8f8..f5c73ee 100644
--- a/modules/monitoring/application/views/helpers/PluginOutput.php
+++ b/modules/monitoring/application/views/helpers/PluginOutput.php
@@ -97,7 +97,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
 
             $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]');
+            $config->set('HTML.Allowed', 'p,br,b,a[href],i,table,tr,td[colspan],div,*[class]');
             // This avoids permission problems:
             // $config->set('Core.DefinitionCache', null);
             $config->set('Cache.DefinitionImpl', null);



More information about the icinga-checkins mailing list