From c49af480dcb59aadfa1edb76f246c68917a59765 Mon Sep 17 00:00:00 2001 From: "dkl%redhat.com" <> Date: Mon, 26 Jan 2009 20:40:22 +0000 Subject: Bug 473646 - WebService methods should check list parameters for scalars and convert before use Patch by Dave Lawrence - r/a=mkanat --- Bugzilla/WebService/Product.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/WebService/Product.pm') diff --git a/Bugzilla/WebService/Product.pm b/Bugzilla/WebService/Product.pm index 4dd894453..eaec012a4 100755 --- a/Bugzilla/WebService/Product.pm +++ b/Bugzilla/WebService/Product.pm @@ -21,6 +21,7 @@ use strict; use base qw(Bugzilla::WebService); use Bugzilla::Product; use Bugzilla::User; +use Bugzilla::WebService::Util qw(validate); ################################################## # Add aliases here for method name compatibility # @@ -45,7 +46,7 @@ sub get_accessible_products { # Get a list of actual products, based on list of ids sub get { - my ($self, $params) = @_; + my ($self, $params) = validate(@_, 'ids'); # Only products that are in the users accessible products, # can be allowed to be returned -- cgit v1.2.3-24-g4f1b