]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 577415: Allow positional parameters for XML-RPC, because Testopia
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Thu, 8 Jul 2010 20:18:12 +0000 (13:18 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Thu, 8 Jul 2010 20:18:12 +0000 (13:18 -0700)
uses them.
r=ghendricks, a=mkanat

Bugzilla/WebService/Server/XMLRPC.pm

index 1a574aa1edb5351c84a049384d7cd3e96d4e68a8..6eb09dc221ef89e7389873d9765073125f5aca42 100644 (file)
@@ -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;
 }