mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
This is more effective code from fixed bug, tiquet: #2216
This commit is contained in:
parent
dd7e429c40
commit
4a52fcff58
@ -247,7 +247,7 @@ sub get_agent_from_name ($$) {
|
|||||||
|
|
||||||
return undef if (! defined ($name) || $name eq '');
|
return undef if (! defined ($name) || $name eq '');
|
||||||
|
|
||||||
return get_db_single_row ($dbh, 'SELECT * FROM tagente WHERE tagente.nombre = ?', $name);
|
return get_db_single_row ($dbh, 'SELECT * FROM tagente WHERE tagente.nombre = ?', safe_input($name));
|
||||||
}
|
}
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
@ -1000,7 +1000,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
|
|||||||
$pa_config,
|
$pa_config,
|
||||||
$event_text,
|
$event_text,
|
||||||
(defined ($agent) ? $agent->{'id_grupo'} : 0),
|
(defined ($agent) ? $agent->{'id_grupo'} : 0),
|
||||||
(defined ($agent) ? $agent->{'id_agente'} : 0),
|
(defined ($fullagent) ? $fullagent->{'id_agente'} : 0),
|
||||||
$priority,
|
$priority,
|
||||||
(defined($alert) ? $alert->{'id'} : 0),
|
(defined($alert) ? $alert->{'id'} : 0),
|
||||||
(defined($alert) ? $alert->{'id_agent_module'} : 0),
|
(defined($alert) ? $alert->{'id_agent_module'} : 0),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user