Fixed the massive edition of modules with white spaces in name modules. TICKET: #1832

(cherry picked from commit 35a9e7c591)
This commit is contained in:
mdtrooper 2015-03-16 12:52:05 +01:00
parent 2646d92b86
commit c57f1cac33
1 changed files with 5 additions and 4 deletions

View File

@ -941,9 +941,10 @@ function process_manage_edit ($module_name, $agents_select = null) {
'id_export', 'history_data', 'critical_inverse',
'warning_inverse', 'critical_instructions',
'warning_instructions', 'unknown_instructions', 'policy_linked',
'id_category', 'disabled_types_event', 'ip_target', 'descripcion',
'min_ff_event_normal', 'min_ff_event_warning', 'min_ff_event_critical',
'each_ff', 'module_ff_interval', 'ff_timeout', 'max_timeout');
'id_category', 'disabled_types_event', 'ip_target',
'descripcion', 'min_ff_event_normal', 'min_ff_event_warning',
'min_ff_event_critical', 'each_ff', 'module_ff_interval',
'ff_timeout', 'max_timeout');
$values = array ();
foreach ($fields as $field) {
@ -1025,7 +1026,7 @@ function process_manage_edit ($module_name, $agents_select = null) {
else {
$modules = db_get_all_rows_filter ('tagente_modulo',
array ('id_agente' => $agents_select,
'nombre' => $module_name),
'nombre' => io_safe_input($module_name)),
array ('id_agente_modulo'));
}
}