From 199d16f56159cf7d0205fdb9bd75dae696bc13e2 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 21 Sep 2022 13:21:59 +0200 Subject: [PATCH] #9431 Fixed webserver module --- pandora_console/include/lib/Module.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/include/lib/Module.php b/pandora_console/include/lib/Module.php index fcd4acdcbc..d0687c2d8c 100644 --- a/pandora_console/include/lib/Module.php +++ b/pandora_console/include/lib/Module.php @@ -749,6 +749,10 @@ class Module extends Entity $updates = $this->fields; $updates['id_tipo_modulo'] = $this->moduleType()->id_tipo(); + if (empty($updates['debug_content']) === false) { + $updates['debug_content'] = str_replace("'", '"', $updates['debug_content']); + } + // In the case of the webserver modules, debug_content special characters must be handled. if ($updates['id_tipo_modulo'] >= MODULE_TYPE_WEB_ANALYSIS && $updates['id_tipo_modulo'] <= MODULE_TYPE_WEB_CONTENT_STRING