Author: chabotc
Date: Wed Dec 3 15:29:20 2008
New Revision: 723135
URL: http://svn.apache.org/viewvc?rev=723135&view=rev
Log:
SHINDIG-758 by Pan Jie - error in parsing signed makeRequest post data that
contained =='s
Modified:
incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php
Modified: incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php?rev=723135&r1=723134&r2=723135&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php Wed Dec 3
15:29:20 2008
@@ -120,10 +120,10 @@
$postDataParams = array();
if (isset($_POST['postData']) && count($postDataParts = split('&',
urldecode($_POST['postData']))) > 0) {
foreach ($postDataParts as $postDataPart) {
- $postDataPartsPair = split('=', $postDataPart);
- if (count($postDataPartsPair) === 2) {
- $postDataParams[$postDataPartsPair[0]] = $postDataPartsPair[1];
- }
+ $position = strpos($postDataPart, '=');
+ $key = substr($postDataPart, 0, $position);
+ $value = substr($postDataPart, $position + 1);
+ $postDataParams[$key] = $value;
}
}
$postParams = array_merge($postParams, $this->sanitize($postDataParams));