diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 561a101988..ed8e880527 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2011-01-31 Sergio Martin + + * lib/PandoraFMS/DB.pm: Fixed a codification bug with + the CLI policy apply + 2011-01-22 Sancho Lerena * lib/PandoraFMS/Config.pm: Updated version, we're on 4.0-dev ! diff --git a/pandora_server/lib/PandoraFMS/DB.pm b/pandora_server/lib/PandoraFMS/DB.pm index 1e0babaa6f..39820fb0fa 100644 --- a/pandora_server/lib/PandoraFMS/DB.pm +++ b/pandora_server/lib/PandoraFMS/DB.pm @@ -165,7 +165,7 @@ sub get_module_name ($$) { sub get_agent_module_id ($$$) { my ($dbh, $module_name, $agent_id) = @_; - my $rc = get_db_value ($dbh, "SELECT id_agente_modulo FROM tagente_modulo WHERE nombre = ? AND id_agente = ?", safe_input($module_name), $agent_id); + my $rc = get_db_value ($dbh, "SELECT id_agente_modulo FROM tagente_modulo WHERE nombre = ? AND id_agente = ?", safe_input(safe_output($module_name)), $agent_id); return defined ($rc) ? $rc : -1; }