summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-08 22:16:29 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-08 22:16:29 +0200
commit688ec34a802f7decbb8f5f6126101b7b9b96c8a3 (patch)
tree3bad517e672eebed3c664ba5ca3b534130a2cace /Bugzilla/WebService/Server
parentd22980e7b032a030d1640537b4b99355eafabb06 (diff)
downloadbugzilla-688ec34a802f7decbb8f5f6126101b7b9b96c8a3.tar.gz
bugzilla-688ec34a802f7decbb8f5f6126101b7b9b96c8a3.tar.xz
Bug 577415: Allow positional parameters for XML-RPC, because Testopia
uses them. r=ghendricks, a=mkanat
Diffstat (limited to 'Bugzilla/WebService/Server')
-rw-r--r--Bugzilla/WebService/Server/XMLRPC.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Server/XMLRPC.pm b/Bugzilla/WebService/Server/XMLRPC.pm
index 1a574aa1e..6eb09dc22 100644
--- a/Bugzilla/WebService/Server/XMLRPC.pm
+++ b/Bugzilla/WebService/Server/XMLRPC.pm
@@ -78,7 +78,10 @@ sub deserialize {
$som->{_bz_do_taint} = 1;
}
bless $som, 'Bugzilla::XMLRPC::SOM';
- Bugzilla->input_params($som->paramsin || {});
+ my $params = $som->paramsin;
+ # This allows positional parameters for Testopia.
+ $params = {} if ref $params ne 'HASH';
+ Bugzilla->input_params($params);
return $som;
}