mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-7590-fallo-servicios-modulos-goliat' into 'develop'
Fixed issue with webserver modules Closes pandora_enterprise#7590 See merge request artica/pandorafms!4152
This commit is contained in:
commit
adb038dd5f
@ -706,6 +706,13 @@ class Module extends Entity
|
|||||||
$updates = $this->fields;
|
$updates = $this->fields;
|
||||||
$updates['id_tipo_modulo'] = $this->moduleType()->id_tipo();
|
$updates['id_tipo_modulo'] = $this->moduleType()->id_tipo();
|
||||||
|
|
||||||
|
// 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
|
||||||
|
) {
|
||||||
|
$updates['debug_content'] = io_safe_input($updates['debug_content']);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->fields['id_agente_modulo'] > 0) {
|
if ($this->fields['id_agente_modulo'] > 0) {
|
||||||
// Update.
|
// Update.
|
||||||
$rs = \db_process_sql_update(
|
$rs = \db_process_sql_update(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user