From 45ecf362d88cd7465fae9c7a50d46c4993a4793a Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 16 May 2023 13:22:33 +0200 Subject: [PATCH 1/2] #11190 safe output in filter agent tree widget --- pandora_console/include/lib/Dashboard/Widgets/tree_view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php index 1e811c0592..f0cbc5941d 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php +++ b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php @@ -540,7 +540,7 @@ class TreeViewWidget extends Widget $searchAgent = ''; if (empty($this->values['filterAgent']) === false) { - $searchAgent = $this->values['filterAgent']; + $searchAgent = io_safe_output($this->values['filterAgent']); } $statusModule = -1; From 7980d68fafdf88e97394e902467b9c2c0f67d077 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Wed, 17 May 2023 11:24:48 +0200 Subject: [PATCH 2/2] #11190 fixed filter with name module --- pandora_console/include/lib/Dashboard/Widgets/tree_view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php index f0cbc5941d..5e7feb5acd 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php +++ b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php @@ -552,7 +552,7 @@ class TreeViewWidget extends Widget $searchModule = ''; if (empty($this->values['filterModule']) === false) { - $searchModule = $this->values['filterModule']; + $searchModule = io_safe_output($this->values['filterModule']); } $searchGroup = 0;