diff --git a/pandora_console/images/broken_loop.svg b/pandora_console/images/broken_loop.svg new file mode 100644 index 0000000000..0ebeb3853a --- /dev/null +++ b/pandora_console/images/broken_loop.svg @@ -0,0 +1,12 @@ + + + loop v2@svg + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index a1ecf8d219..310ba23faa 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -2235,7 +2235,7 @@ function html_print_select_from_sql( foreach ($result as $row) { $id = array_shift($row); $value = array_shift($row); - $fields[$id] = $value; + $fields[$id] = io_safe_output($value); } return html_print_select( diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index fdb72cc1f0..1d92fa757d 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -3222,7 +3222,7 @@ function visual_map_get_image_status_element($layoutData, $status=false) break; case 33: - $img = 'images/alert-yellow@svg.svg'; + $img = 'images/broken_loop.svg'; break; case 3: diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/StaticGraph.php b/pandora_console/include/rest-api/models/VisualConsole/Items/StaticGraph.php index 97d6fe941a..512037dae8 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Items/StaticGraph.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Items/StaticGraph.php @@ -198,7 +198,7 @@ final class StaticGraph extends Item } else if (str_contains($imagePath, '_warning.png') === true) { // Warning or warning alert. $data['colorStatus'] = COL_WARNING; - } else if (str_contains($imagePath, 'alert-yellow@svg.svg') === true) { + } else if (str_contains($imagePath, 'broken_loop.svg') === true) { // Default is Grey (Other). $data['colorStatus'] = COL_UNKNOWN; $tooltip_infinite_loop = __('Infinite link loop found. Can not determine status.');