aboutsummaryrefslogtreecommitdiffstats
path: root/describecomponents.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-09-13 05:51:42 +0000
committergerv%gerv.net <>2002-09-13 05:51:42 +0000
commit618851e70c753221a79942976523493b6c52fc71 (patch)
tree255ed3466db43e93d5f145f517253125f247fb9a /describecomponents.cgi
parentc5d6844efc09646e5233891badb68fd7ce6f8df7 (diff)
downloadbugs-618851e70c753221a79942976523493b6c52fc71.tar
bugs-618851e70c753221a79942976523493b6c52fc71.tar.gz
bugs-618851e70c753221a79942976523493b6c52fc71.tar.bz2
bugs-618851e70c753221a79942976523493b6c52fc71.tar.xz
bugs-618851e70c753221a79942976523493b6c52fc71.zip
Bug 167978 - Fix Throw*Error l10n regressions and add a test to catch more. Patch by gerv; r=bbaetz.
Diffstat (limited to 'describecomponents.cgi')
-rwxr-xr-xdescribecomponents.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/describecomponents.cgi b/describecomponents.cgi
index 9edb5dfa0..be3be4b9f 100755
--- a/describecomponents.cgi
+++ b/describecomponents.cgi
@@ -87,7 +87,10 @@ my $product = $::FORM{'product'};
# cannot get any other information about that product.
my $product_id = get_product_id($product);
-ThrowUserError("The product name is invalid.") unless $product_id;
+if (!$product_id) {
+ $::vars->{'product'} = $product;
+ ThrowUserError("invalid_product_name");
+}
# Make sure the user is authorized to access this product.
if (Param("usebuggroups") && GroupExists($product)) {