Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.2

Bug #20107 Array query parameters and post data not handled properly
Submitted: 2013-11-01 00:58 UTC
From: gauthierm Assigned: gauthierm
Status: Closed Package: HTTP_OAuth (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2013-11-01 00:58 UTC] gauthierm (Michael Gauthier)
Description: ------------ If you do an OAuth request to http://myservice.com/? ids[]=2&ids[]=3 HTTP_OAuth only understands the last ids[] parameter. PHP parses these into an array. HTTP_OAuth should do the same. This is part of a larger issue. Any query parameter can be duplicated in HTTP and OAuth and the signature base is affected. The general issue is much harder to solve than just supporting arrays and would require significant API changes.

Comments

 [2013-11-01 19:03 UTC] gauthierm (Michael Gauthier)
 [2013-11-01 19:05 UTC] gauthierm (Michael Gauthier)
With the PR, you can access ids[] as an array using $request->getParameters() or $request['ids[]'].
 [2013-11-01 19:27 UTC] gauthierm (Michael Gauthier)
-Status: Open +Status: Closed -Assigned To: +Assigned To: gauthierm
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.