Active
Project:
REST Server
Version:
6.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2011 at 15:01 UTC
Updated:
21 Nov 2011 at 15:01 UTC
Hey there,
I just tried running a service and accessing it via a cURL-generated POST request with 2 parameters. Unfortunately, what I ended up having was a correct first value, but a missing second value because parseURLEncoded was thinking that the second parameter's name was amp;myname instead of myname. Replacing
parse_str(self::contentFromStream($handle), $data);
with
parse_str(html_entity_decode(self::contentFromStream($handle)), $data);
in line 452 of RESTServer.inc seems to fix the issue (though I don't know if there are situations where doing so would result in wrong data or smthn).
Thanks for looking into this.