fix module string data with html special chars breaking html in page
This commit is contained in:
parent
e35edd92b3
commit
73f3dfac85
|
@ -832,7 +832,7 @@ foreach ($modules as $module) {
|
|||
|
||||
$data[5] = ui_print_truncate_text($module['descripcion'], 'description', false);
|
||||
|
||||
$data[6] = ui_print_status_image($status, $title, true);
|
||||
$data[6] = ui_print_status_image($status, htmlspecialchars($title), true);
|
||||
|
||||
// MAX / MIN values
|
||||
if ($module['id_tipo_modulo'] != 25) {
|
||||
|
|
|
@ -1022,7 +1022,7 @@ if (check_login()) {
|
|||
$title
|
||||
);
|
||||
|
||||
$data[5] = ui_print_status_image($status, $title, true);
|
||||
$data[5] = ui_print_status_image($status, htmlspecialchars($title), true);
|
||||
if (!$show_context_help_first_time) {
|
||||
$show_context_help_first_time = true;
|
||||
|
||||
|
|
|
@ -623,7 +623,7 @@ class Tree
|
|||
}
|
||||
}
|
||||
|
||||
$module['statusImageHTML'] = ui_print_status_image($statusType, $statusTitle, true);
|
||||
$module['statusImageHTML'] = ui_print_status_image($statusType, htmlspecialchars($statusTitle), true);
|
||||
|
||||
// HTML of the server type image
|
||||
$module['serverTypeHTML'] = servers_show_type($module['server_type']);
|
||||
|
|
Loading…
Reference in New Issue