From 3cec295b9e077d0c8d007e37a4f804b37399fe5b Mon Sep 17 00:00:00 2001 From: enriquecd Date: Tue, 24 Jan 2017 11:55:46 +0100 Subject: [PATCH] Escape quotes in str_warning and str_critical fields in agent editor - #26 --- .../godmode/agentes/module_manager_editor_common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index aac1c5d6a5..4925b22663 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -272,7 +272,7 @@ if (!modules_is_string_type($id_module_type) || $edit) { } if (modules_is_string_type($id_module_type) || $edit) { $table_simple->data[4][1] .= ''.__('Str.').''; - $table_simple->data[4][1] .= html_print_input_text ('str_warning', $str_warning, + $table_simple->data[4][1] .= html_print_input_text ('str_warning', str_replace("\"","",$str_warning), '', 10, 255, true, $disabledBecauseInPolicy, false, '', $classdisabledBecauseInPolicy).''; } $table_simple->data[4][1] .= '
'.__('Inverse interval').''; @@ -293,7 +293,7 @@ if (!modules_is_string_type($id_module_type) || $edit) { } if (modules_is_string_type($id_module_type) || $edit) { $table_simple->data[5][1] .= ''.__('Str.').''; - $table_simple->data[5][1] .= html_print_input_text ('str_critical', $str_critical, + $table_simple->data[5][1] .= html_print_input_text ('str_critical', str_replace("\"","",$str_critical), '', 10, 255, true, $disabledBecauseInPolicy, false, '', $classdisabledBecauseInPolicy).''; }