You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ch...@apache.org on 2009/07/14 16:46:58 UTC
svn commit: r793914 - /incubator/shindig/trunk/php/src/gadgets/ProxyBase.php
Author: chabotc
Date: Tue Jul 14 14:46:58 2009
New Revision: 793914
URL: http://svn.apache.org/viewvc?rev=793914&view=rev
Log:
SHINDIG-1112 fix by Johan Euphrosine, properly parse gadgets.io.RequestParameters.HEADERS in signed requests
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=793914&r1=793913&r2=793914&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/ProxyBase.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/ProxyBase.php Tue Jul 14 14:46:58 2009
@@ -76,7 +76,7 @@
$request->setToken($token);
}
if (isset($_POST['headers'])) {
- $request->setHeaders($_POST['headers']);
+ $request->setHeaders(urldecode(str_replace("&", "\n", str_replace("=", ": ", $_POST['headers']))));
}
return $request;
}