Use validCardinal on Id to prevent executing other commands

pull/3667/head
Isaac Connor 2023-02-20 11:41:41 -05:00
parent 707c3a0561
commit a495eda6be
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ class Monitor extends ZM_Object {
return false;
}
$cmd = getZmuCommand($cmd.' -m '.$this->{'Id'});
$cmd = getZmuCommand($cmd.' -m '.validCardinal($this->{'Id'}));
$output = shell_exec($cmd);
Debug("Running $cmd output: $output");
return $output;