[icinga-checkins] icinga.org: icinga2-migration/master: Properly escape event_command attributes

git at icinga.org git at icinga.org
Tue Jun 10 23:19:52 CEST 2014


Module: icinga2-migration
Branch: master
Commit: 818f802631b45e89c9acb91f39f74c9e7b8e0a5a
URL:    https://git.icinga.org/?p=icinga2-migration.git;a=commit;h=818f802631b45e89c9acb91f39f74c9e7b8e0a5a

Author: Michael Friedrich <michael.friedrich at gmail.com>
Date:   Tue Jun 10 23:19:37 2014 +0200

Properly escape event_command attributes

---

 .../conftool/library/Conftool/Icinga2/Icinga2ObjectDefinition.php |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/conftool/library/Conftool/Icinga2/Icinga2ObjectDefinition.php b/modules/conftool/library/Conftool/Icinga2/Icinga2ObjectDefinition.php
index e8997de..127adc8 100644
--- a/modules/conftool/library/Conftool/Icinga2/Icinga2ObjectDefinition.php
+++ b/modules/conftool/library/Conftool/Icinga2/Icinga2ObjectDefinition.php
@@ -219,6 +219,11 @@ class Icinga2ObjectDefinition
         $this->display_name = "\"".$value."\"";
     }
 
+    protected function convertEvent_handler($value)
+    {
+        $this->event_command = "\"".$value."\"";
+    }
+
     protected function convertAction_url($value)
     {
         $this->action_url = "\"".$this->migrateLegacyMacros($value)."\"";



More information about the icinga-checkins mailing list