From 3583c81fb95ad1a52be818a1c06ddda76e3dd7e3 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 8 May 2023 10:51:25 +0200 Subject: [PATCH] #9771 fixed output summary --- pandora_console/godmode/wizards/DiscoveryTaskList.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php index 541750d15c..596703ee3f 100644 --- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php +++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php @@ -1389,7 +1389,7 @@ class DiscoveryTaskList extends HTML $output = ''; if (is_array($task['stats']) === false && (int) $task['type'] !== DISCOVERY_EXTENSION) { - $task['stats'] = json_decode($task['summary'], true); + $task['stats'] = json_decode(io_safe_output($task['summary']), true); if (json_last_error() !== JSON_ERROR_NONE) { return $task['summary']; } @@ -1573,7 +1573,7 @@ class DiscoveryTaskList extends HTML } $task = db_get_row('trecon_task', 'id_rt', $id_task); - $task['stats'] = json_decode($task['summary'], true); + $task['stats'] = json_decode(io_safe_output($task['summary']), true); $summary = $this->progressTaskSummary($task); $output = '';