From: Max Kanat-Alexander Date: Thu, 8 Jul 2010 20:18:12 +0000 (-0700) Subject: Bug 577415: Allow positional parameters for XML-RPC, because Testopia X-Git-Tag: bugzilla-3.6.2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12eb77255a9527981d29b4d199b31a7a15ed0c26;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; }