Author: chabotc
Date: Sun Mar 29 10:51:12 2009
New Revision: 759664
URL: http://svn.apache.org/viewvc?rev=759664&view=rev
Log:
When using makeRequest for post data:
var data = {'param':'123&456'};
params[gadgets.io.RequestParameters.POST_DATA] =
gadgets.io.encodeValues(data);
gadgets.io.makeRequest('http://example.com', callback, params);
param will be truncated to 'param=123' in php-shindig, this patch fixes that.
Modified:
incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/ProxyHandler.php
Modified:
incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/ProxyHandler.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/ProxyHandler.php?rev=759664&r1=759663&r2=759664&view=diff
==============================================================================
---
incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/ProxyHandler.php
(original)
+++
incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/ProxyHandler.php
Sun Mar 29 10:51:12 2009
@@ -369,9 +369,9 @@
}
$postData = '';
if ($data) {
- $data = urldecode($data);
$entries = explode('&', $data);
foreach ($entries as $entry) {
+ $entry = urldecode($entry);
$parts = explode('=', $entry);
// Process only if its a valid value=something pair
if (count($parts) == 2) {