diff options
author | dkl%redhat.com <> | 2009-01-26 21:40:22 +0100 |
---|---|---|
committer | dkl%redhat.com <> | 2009-01-26 21:40:22 +0100 |
commit | c49af480dcb59aadfa1edb76f246c68917a59765 (patch) | |
tree | 86ee9438a99ae209ea0fd8bbc5eddc2376b30b1c /Bugzilla/WebService/Product.pm | |
parent | 2319f5f6660df8ed65c44dc29a5b2f42f9d81629 (diff) | |
download | bugzilla-c49af480dcb59aadfa1edb76f246c68917a59765.tar.gz bugzilla-c49af480dcb59aadfa1edb76f246c68917a59765.tar.xz |
Bug 473646 - WebService methods should check list parameters for scalars and convert before use
Patch by Dave Lawrence <dkl@redhat.com> - r/a=mkanat
Diffstat (limited to 'Bugzilla/WebService/Product.pm')
-rwxr-xr-x | Bugzilla/WebService/Product.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 |