use Bugzilla::Constants;
use Bugzilla::Bug;
use Bugzilla::User;
+use Bugzilla::Product;
require "globals.pl";
use vars qw(
# We need to check and make sure
# that the user has permission to enter a bug against this product.
+my $prod_obj = new Bugzilla::Product({name => $product});
+# Update the product name to get the correct case.
+$product = $prod_obj->name if defined $prod_obj;
Bugzilla->user->can_enter_product($product, 1);
GetVersionTable();