From 5ba12da9d36767c575f504094c9be8c65d8ca2ad Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 13 Apr 2012 08:36:08 +0000 Subject: [PATCH] 2012-04-13 Sergio Martin * util/pandora_manage.pl: Fixed entities trouble in the action exist check git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5966 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/util/pandora_manage.pl | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 84982a3c27..eaa7820905 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2012-04-13 Sergio Martin + + * util/pandora_manage.pl: Fixed entities trouble in the action + exist check + 2012-04-12 Ramon Novoa * lib/PandoraFMS/DB.pm, diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 5e8c155f83..0c033f3ad5 100755 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -1475,7 +1475,7 @@ sub cli_create_template_action() { exist_check($template_id,'template',$template_name); my $template_module_id = get_template_module_id($dbh,$module_id,$template_id); exist_check($template_module_id,'template module',$template_name); - my $action_id = get_action_id($dbh,$action_name); + my $action_id = get_action_id($dbh,safe_input($action_name)); exist_check($action_id,'action',$action_name); $fires_min = 0 unless defined ($fires_min); @@ -1509,7 +1509,7 @@ sub cli_delete_template_action() { exist_check($template_id,'template',$template_name); my $template_module_id = get_template_module_id($dbh,$module_id,$template_id); exist_check($template_module_id,'template module',$template_name); - my $action_id = get_action_id($dbh,$action_name); + my $action_id = get_action_id($dbh,safe_input($action_name)); exist_check($action_id,'action',$action_name); pandora_delete_template_module_action ($dbh, $template_module_id, $action_id);