mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
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[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
|
// MAX / MIN values
|
||||||
if ($module['id_tipo_modulo'] != 25) {
|
if ($module['id_tipo_modulo'] != 25) {
|
||||||
|
@ -1022,7 +1022,7 @@ if (check_login()) {
|
|||||||
$title
|
$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) {
|
if (!$show_context_help_first_time) {
|
||||||
$show_context_help_first_time = true;
|
$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
|
// HTML of the server type image
|
||||||
$module['serverTypeHTML'] = servers_show_type($module['server_type']);
|
$module['serverTypeHTML'] = servers_show_type($module['server_type']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user