Validate entities with safe input.

This commit is contained in:
Félix Suárez 2023-06-05 08:41:10 -06:00
parent a85a7eccf8
commit b7a6c8f730
1 changed files with 1 additions and 3 deletions

View File

@ -5384,13 +5384,11 @@ sub cli_get_agent_status() {
##############################################################################
sub cli_get_agents_id_name_by_alias() {
my $agent_alias = @ARGV[2];
my $agent_alias = safe_input(@ARGV[2]);
my $strict = @ARGV[3];
my @agents;
my $where_value;
$agent_alias =~ s/ / /g;
if($strict eq 'strict') {
$where_value = $agent_alias;
} else {