From 688ec34a802f7decbb8f5f6126101b7b9b96c8a3 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Thu, 8 Jul 2010 13:16:29 -0700 Subject: Bug 577415: Allow positional parameters for XML-RPC, because Testopia uses them. r=ghendricks, a=mkanat --- Bugzilla/WebService/Server/XMLRPC.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-24-g4f1b