From 2c589e1da9d4403d6d3b6d9159585377154a4d52 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 1 Aug 2006 17:50:15 +0000 Subject: [PATCH] r1026: We now validate the component properly --- includes/api_bug.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api_bug.php b/includes/api_bug.php index 9e20764..2fbc5ed 100644 --- a/includes/api_bug.php +++ b/includes/api_bug.php @@ -144,6 +144,7 @@ class BugAPI extends API { if ($this->values['component'] != 0) { + $component = $this->registry->datastore['product'][ $this->values['component'] ]; $product = $this->registry->datastore['product'][ $this->values['product'] ]; $version = $this->registry->datastore['version'][ $this->values['version'] ]; if ($component['componentmother'] != $product['productid']) -- 2.22.5