mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Validate entities with safe input.
This commit is contained in:
parent
a85a7eccf8
commit
b7a6c8f730
@ -5384,13 +5384,11 @@ sub cli_get_agent_status() {
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
sub cli_get_agents_id_name_by_alias() {
|
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 $strict = @ARGV[3];
|
||||||
my @agents;
|
my @agents;
|
||||||
my $where_value;
|
my $where_value;
|
||||||
|
|
||||||
$agent_alias =~ s/ / /g;
|
|
||||||
|
|
||||||
if($strict eq 'strict') {
|
if($strict eq 'strict') {
|
||||||
$where_value = $agent_alias;
|
$where_value = $agent_alias;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user