You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by bh...@apache.org on 2010/08/30 07:42:13 UTC
svn commit: r990700 - /shindig/trunk/php/src/gadgets/SigningFetcher.php
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);