From e5ccd88f6141a01af133eac28078d3221396dd33 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Wed, 29 Nov 2023 15:03:08 +0100 Subject: [PATCH] #12558 fixed SQL error when copying web module server status in debug_content field --- pandora_console/include/functions_modules.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index 090bb8bdb9..5add1570d8 100755 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -251,6 +251,11 @@ function modules_copy_agent_module_to_agent($id_agent_module, $id_destiny_agent, unset($new_module['id_agente_modulo']); unset($new_module['id_agente']); + // Set debug content. + if (empty($new_module['debug_content']) === false) { + $new_module['debug_content'] = str_replace("'", '"', $new_module['debug_content']); + } + $id_new_module = modules_create_agent_module( $id_destiny_agent, $new_module['nombre'],