Fixed issue with duplicate web server modules

This commit is contained in:
Jose Gonzalez 2021-03-29 14:07:57 +02:00
parent 4fa790dd7f
commit 001b547fb0
1 changed files with 8 additions and 0 deletions

View File

@ -639,6 +639,14 @@ function modules_create_agent_module(
);
}
// Only for Web server modules.
if (isset($values['id_tipo_modulo'])
&& ($values['id_tipo_modulo'] >= MODULE_TYPE_WEB_ANALYSIS
&& $values['id_tipo_modulo'] <= MODULE_TYPE_WEB_CONTENT_STRING)
) {
$values['debug_content'] = io_safe_input($values['debug_content']);
}
$id_agent_module = db_process_sql_insert('tagente_modulo', $values);
if ($id_agent_module === false) {