From eb927b0f084ee4ef6c87ab2eb7a15e99369e74ae Mon Sep 17 00:00:00 2001 From: Stanislas Date: Thu, 12 Sep 2024 11:13:26 +0200 Subject: [PATCH] Merge commit from fork --- inc/container.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/container.class.php b/inc/container.class.php index d1f5894d..7acaf914 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -1163,7 +1163,7 @@ public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $ //retrieve container for current tab $container = new self(); - $found_c = $container->find(['type' => 'tab', 'name' => $tabnum, 'is_active' => 1]); + $found_c = $container->find(['type' => 'tab', 'name' => Sanitizer::sanitize($tabnum), 'is_active' => 1]); foreach ($found_c as $data) { $dataitemtypes = json_decode($data['itemtypes']); if (in_array(get_class($item), $dataitemtypes) != false) {