From 02ce575d9ffc7c1558d4d6d6aac9d3b364e656e7 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Thu, 27 Jul 2017 12:39:38 +0200 Subject: [PATCH] Added a last fix --- pandora_console/godmode/agentes/configurar_agente.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 777d5facdc..9f5e0b3226 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1001,9 +1001,10 @@ if ($update_module || $create_module) { $macros = io_json_mb_encode($macros); $conf_array = explode("\n", io_safe_output($configuration_data)); + foreach ($conf_array as $line) { if (preg_match("/^module_name\s*(.*)/", $line, $match)) { - $new_configuration_data .= "module_name $name\n"; + $new_configuration_data .= "module_name " . io_safe_output($name) . "\n"; } // We delete from conf all the module macros starting with _field else if(!preg_match("/^module_macro_field.*/", $line, $match)) {