From 6c9bb345386f1c0807f955986b266e0ed65d2b92 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 31 Jul 2012 16:28:15 +0000 Subject: [PATCH] 2012-07-31 Sergio Martin * pandora_console/include/functions_api.php: Added a safe_input to fix entities problems in last feature git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6834 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_api.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cdb1d7c31a..5b9859219e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-07-31 Sergio Martin + + * pandora_console/include/functions_api.php: Added + a safe_input to fix entities problems in last feature + 2012-07-31 Sergio Martin * include/functions_api.php: Added API function to diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 3aee09728b..e52f5e0bc5 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -3246,7 +3246,7 @@ function api_set_add_module_in_conf($id_agent, $module_name, $configuration_data * @return string success or error message */ function api_get_module_from_conf($id_agent, $module_name, $thrash2, $thrash3) { - $result = enterprise_hook('config_agents_get_module_from_conf', array($id_agent, $module_name)); + $result = enterprise_hook('config_agents_get_module_from_conf', array($id_agent, io_safe_output($module_name))); if($result !== ENTERPRISE_NOT_HOOK) { returnData('string', array('type' => 'string', 'data' => $result));