Author: chabotc
Date: Sun Mar 29 10:51:40 2009
New Revision: 759665

URL: http://svn.apache.org/viewvc?rev=759665&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/trunk/php/src/gadgets/ProxyBase.php

Modified: incubator/shindig/trunk/php/src/gadgets/ProxyBase.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/ProxyBase.php?rev=759665&r1=759664&r2=759665&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/ProxyBase.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/ProxyBase.php Sun Mar 29 10:51:40 
2009
@@ -60,9 +60,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) {


Reply via email to