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