From: Max Kanat-Alexander Date: Thu, 8 Jul 2010 20:16:29 +0000 (-0700) Subject: Bug 577415: Allow positional parameters for XML-RPC, because Testopia X-Git-Tag: bugzilla-4.1.1~448 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=688ec34a802f7decbb8f5f6126101b7b9b96c8a3;p=thirdparty%2Fbugzilla.git Bug 577415: Allow positional parameters for XML-RPC, because Testopia uses them. r=ghendricks, a=mkanat --- diff --git a/Bugzilla/WebService/Server/XMLRPC.pm b/Bugzilla/WebService/Server/XMLRPC.pm index 1a574aa1ed..6eb09dc221 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; }