[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaCommandArgumentForm: trim argument name

git at icinga.org git at icinga.org
Tue Aug 2 13:14:27 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: d311b15399539b549c3dd3cdbb8d047a5d646320
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=d311b15399539b549c3dd3cdbb8d047a5d646320

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Aug  2 11:13:43 2016 +0000

IcingaCommandArgumentForm: trim argument name

fixes #11548

---

 application/forms/IcingaCommandArgumentForm.php |    1 +
 1 file changed, 1 insertion(+)

diff --git a/application/forms/IcingaCommandArgumentForm.php b/application/forms/IcingaCommandArgumentForm.php
index 59214a8..37f1a9b 100644
--- a/application/forms/IcingaCommandArgumentForm.php
+++ b/application/forms/IcingaCommandArgumentForm.php
@@ -23,6 +23,7 @@ class IcingaCommandArgumentForm extends DirectorObjectForm
 
         $this->addElement('text', 'argument_name', array(
             'label'       => $this->translate('Argument name'),
+            'filters'     => array('StringTrim'),
             'description' => $this->translate('e.g. -H or --hostname, empty means "skip_key"')
         ));
 



More information about the icinga-checkins mailing list