Merge branch 'ent-9431-14085-anadir-modulo-webserver-a-cluster-activo-pasivo' into 'develop'

Ent 9431 14085 anadir modulo webserver a cluster activo pasivo

See merge request artica/pandorafms!5129
This commit is contained in:
Diego Muñoz-Reja 2022-10-13 16:22:27 +00:00
commit f45b185250
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