From feaf47a555551a47a15fae61a932594f3baf3dff Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 31 Jan 2011 15:39:13 +0000 Subject: [PATCH] 2011-01-31 Sergio Martin * lib/PandoraFMS/DB.pm: Fixed a codification bug with the CLI policy apply git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3791 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/lib/PandoraFMS/DB.pm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; }