diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php
index 406b67b020..e4f7b3172b 100644
--- a/pandora_console/include/functions_events.php
+++ b/pandora_console/include/functions_events.php
@@ -5362,8 +5362,11 @@ function events_page_comments($event, $groupedComments=[], $filter=null)
'
%s',
date($config['date_format'], $comm['utimestamp'])
);
-
- $data[1] = '
'.stripslashes(str_replace(['\n', '\r'], '
', $comm['comment'])).'
';
+ if (isset($config['events_format_urls']) === true && (bool) $config['events_format_urls'] === true) {
+ $data[1] = io_safe_output($comm['comment']);
+ } else {
+ $data[1] = ''.stripslashes(str_replace(['\n', '\r'], '
', $comm['comment'])).'
';
+ }
$table_comments->data[] = $data;
}
diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php
index 0439bcd714..dc7924922b 100755
--- a/pandora_console/include/functions_ui.php
+++ b/pandora_console/include/functions_ui.php
@@ -7270,24 +7270,27 @@ function ui_print_comments($comment, $truncate_limit=255)
$short_comment = substr($comment['comment'], 0, 20);
$comentario = $comment['comment'];
+ if (isset($config['events_format_urls']) === true && (bool) $config['events_format_urls'] === true) {
+ $comentario = ''.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$comment['comment'].'';
+ } else {
+ if (strlen($comentario) >= $truncate_limit) {
+ $comentario = ui_print_truncate_text(
+ $comentario,
+ $truncate_limit,
+ false,
+ true,
+ false,
+ '…',
+ true,
+ true,
+ );
+ }
- if (strlen($comentario) >= $truncate_limit) {
- $comentario = ui_print_truncate_text(
- $comentario,
- $truncate_limit,
- false,
- true,
- false,
- '…',
- true,
- true,
- );
- }
+ $comentario = ''.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$comment['comment'].'';
- $comentario = ''.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$comment['comment'].'';
-
- if (strlen($comentario) > '200px' && $truncate_limit >= 255) {
- $comentario = ''.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$short_comment.'...';
+ if (strlen($comentario) > '200px' && $truncate_limit >= 255) {
+ $comentario = ''.ui_print_timestamp($comment['utimestamp'], true, ['style' => 'font-size: 10px; display: contents;', 'prominent' => 'compact']).' ('.$comment['id_user'].'): '.$short_comment.'...';
+ }
}
return $comentario;
diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php
index 563472ce31..06262cae22 100644
--- a/pandora_console/operation/events/events.php
+++ b/pandora_console/operation/events/events.php
@@ -560,16 +560,20 @@ if (is_ajax() === true) {
}
if (empty($tmp->event_custom_id) === false) {
- $tmp->event_custom_id = ui_print_truncate_text(
- $tmp->event_custom_id,
- 30,
- false,
- true,
- false,
- '…',
- true,
- true,
- );
+ if (isset($config['events_format_urls']) === true && (bool) $config['events_format_urls'] === true) {
+ $tmp->event_custom_id = io_safe_output($tmp->event_custom_id);
+ } else {
+ $tmp->event_custom_id = ui_print_truncate_text(
+ $tmp->event_custom_id,
+ 30,
+ false,
+ true,
+ false,
+ '…',
+ true,
+ true,
+ );
+ }
}
if (empty($tmp->module_custom_id) === false) {