File CVE-2022-35230.patch of Package failed_zabbix

Index: frontends/php/include/views/configuration.graph.edit.php
===================================================================
--- frontends/php/include/views/configuration.graph.edit.php.orig	2022-06-28 08:59:47.000000000 +0200
+++ frontends/php/include/views/configuration.graph.edit.php	2022-07-23 01:04:16.970847088 +0200
@@ -409,6 +409,10 @@ $items_table->addRow(
 );
 
 foreach ($this->data['items'] as $n => $item) {
+	if (!$item['itemid']) {
+		continue;
+	}
+
 	$name = $item['host'].NAME_DELIMITER.$item['name_expanded'];
 
 	if (zbx_empty($item['drawtype'])) {
openSUSE Build Service is sponsored by