#9431 Fixed webserver module

This commit is contained in:
Daniel Maya 2022-09-21 13:21:59 +02:00
parent 158af125e2
commit 199d16f561
1 changed files with 4 additions and 0 deletions

View File

@ -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