From d934c013db03821d4beb076c66e3930f10e5376f Mon Sep 17 00:00:00 2001 From: enriquecd Date: Tue, 24 Jan 2017 12:04:21 +0100 Subject: [PATCH] Escape quotes in str_warning and str_critical fields in agent editor / 6 - #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 0e3f4f78e5..8d10826a8f 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -251,7 +251,7 @@ if (!modules_is_string_type($id_module_type) || $edit) { } if (modules_is_string_type($id_module_type) || $edit) { $table_simple->data[2][1] .= ''.__('Str.').''; - $table_simple->data[2][1] .= html_print_input_text ('str_warning', $str_warning, + $table_simple->data[2][1] .= html_print_input_text ('str_warning', str_replace("\"","",$str_warning), '', 10, 255, true, $disabledBecauseInPolicy, false, '', $classdisabledBecauseInPolicy).''; } @@ -270,7 +270,7 @@ if (!modules_is_string_type($id_module_type) || $edit) { } if (modules_is_string_type($id_module_type) || $edit) { $table_simple->data[2][3] .= ''.__('Str.').''; - $table_simple->data[2][3] .= html_print_input_text ('str_critical', $str_critical, + $table_simple->data[2][3] .= html_print_input_text ('str_critical', str_replace("\"","",$str_critical), '', 10, 255, true, $disabledBecauseInPolicy, false, '', $classdisabledBecauseInPolicy).''; }