[icinga-checkins] icinga.org: icingaweb2/bugfix/ zero-width-space-characters-may-destroy-links-in-plugin-output-11796: PluginOutput: don't use ENT_HTML5 as it's available since PHP 5.4

git at icinga.org git at icinga.org
Fri May 20 13:12:59 CEST 2016


Module: icingaweb2
Branch: bugfix/zero-width-space-characters-may-destroy-links-in-plugin-output-11796
Commit: 0d82a53126f8a38a46bd14eb876c69807280e80e
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=0d82a53126f8a38a46bd14eb876c69807280e80e

Author: Alexander A. Klimov <alexander.klimov at netways.de>
Date:   Fri May 20 12:07:29 2016 +0200

PluginOutput: don't use ENT_HTML5 as it's available since PHP 5.4

refs #11796

---

 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 0240b96..b78417d 100644
--- a/modules/monitoring/application/views/helpers/PluginOutput.php
+++ b/modules/monitoring/application/views/helpers/PluginOutput.php
@@ -34,7 +34,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
 
     public function __construct()
     {
-        $this->zeroWidthSpace = html_entity_decode('​', ENT_NOQUOTES | ENT_HTML5, 'UTF-8');
+        $this->zeroWidthSpace = html_entity_decode('​', ENT_NOQUOTES, 'UTF-8');
     }
 
     public function pluginOutput($output, $raw = false)



More information about the icinga-checkins mailing list