Author: bhofmann
Date: Mon Aug 30 05:42:13 2010
New Revision: 990700
URL: http://svn.apache.org/viewvc?rev=990700&view=rev
Log:
Fix for PHP SigningFetcher: variable $postParams is undefined if post request
without postbody is supposed to be signed
Modified:
shindig/trunk/php/src/gadgets/SigningFetcher.php
Modified: shindig/trunk/php/src/gadgets/SigningFetcher.php
URL:
http://svn.apache.org/viewvc/shindig/trunk/php/src/gadgets/SigningFetcher.php?rev=990700&r1=990699&r2=990700&view=diff
==============================================================================
--- shindig/trunk/php/src/gadgets/SigningFetcher.php (original)
+++ shindig/trunk/php/src/gadgets/SigningFetcher.php Mon Aug 30 05:42:13 2010
@@ -97,9 +97,9 @@ class SigningFetcher extends RemoteConte
$contentType = $request->getHeader('Content-Type');
$signBody = (stripos($contentType, 'application/x-www-form-urlencoded')
!== false || $contentType == null);
$msgParams = array();
+ $postParams = array();
if ($request->getPostBody()) {
if ($signBody) {
- $postParams = array();
// on normal application/x-www-form-urlencoded type post's encode
and parse the post vars
parse_str($request->getPostBody(), $postParams);
$postParams = $this->sanitize($postParams);