From 9e4c1a7574333b432501f65f659861167800738f Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Tue, 13 Jun 2023 11:36:54 +0200 Subject: [PATCH] #11548 Fix separators and select separators --- .../Dashboard/Widgets/module_table_value.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pandora_console/include/lib/Dashboard/Widgets/module_table_value.php b/pandora_console/include/lib/Dashboard/Widgets/module_table_value.php index dcbfa2a520..52f70c0e01 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/module_table_value.php +++ b/pandora_console/include/lib/Dashboard/Widgets/module_table_value.php @@ -351,12 +351,12 @@ class ModuleTableValueWidget extends Widget ]; $fields = [ - ' ' => __('Carriage Return'), - '|' => __('Vertical Bar'), - ';' => __('Semicolon'), - ':' => __('Colon'), - ',' => __('Commas'), - ' ' => __('Blank'), + htmlentities(' ', ENT_QUOTES) => __('Carriage Return'), + '|' => __('Vertical Bar'), + ';' => __('Semicolon'), + ':' => __('Colon'), + ',' => __('Commas'), + htmlentities(' ', ENT_QUOTES) => __('Blank'), ]; $inputs[] = [ @@ -407,11 +407,11 @@ class ModuleTableValueWidget extends Widget $size_text = $this->values['sizeLabel']; $data_module = modules_get_last_value($id_module); - $value = (string) $data_module; + $value = nl2br((string) $data_module); $value = str_replace( - io_safe_output($this->values['separator']), - '
', + '
', + nl2br(io_safe_output(html_entity_decode($this->values['separator']))), $value );