mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
IcingaCommandForm: Add warning for command as plain string
This commit is contained in:
parent
6a79436af3
commit
e64ace7ccf
@ -76,8 +76,9 @@ class IcingaCommandForm extends DirectorObjectForm
|
|||||||
|
|
||||||
$descIsString = [
|
$descIsString = [
|
||||||
$this->translate('Render the command as a plain string instead of an array.'),
|
$this->translate('Render the command as a plain string instead of an array.'),
|
||||||
$this->translate('This can not be used together with arguments.'),
|
$this->translate('If enabled you can not define arguments.'),
|
||||||
$this->translate('It is disabled by default and should only be used in rare cases.'),
|
$this->translate('Disabled by default, and should only be used in rare cases.'),
|
||||||
|
$this->translate('WARNING, this can allow shell script injection via custom variables used in command.'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->addBoolean(
|
$this->addBoolean(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user