File zabbix-CVE-2022-35230.patch of Package zabbix.25188

Index: zabbix-4.0.12/frontends/php/include/views/configuration.graph.edit.php
===================================================================
--- zabbix-4.0.12.orig/frontends/php/include/views/configuration.graph.edit.php
+++ zabbix-4.0.12/frontends/php/include/views/configuration.graph.edit.php
@@ -407,6 +407,9 @@ $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