You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/05/22 21:30:10 UTC

svn commit: r659220 - /incubator/shindig/trunk/php/src/gadgets/oauth/OAuth.php

Author: chabotc
Date: Thu May 22 12:30:10 2008
New Revision: 659220

URL: http://svn.apache.org/viewvc?rev=659220&view=rev
Log:
Applying fix from SHINDIG-301

Modified:
    incubator/shindig/trunk/php/src/gadgets/oauth/OAuth.php

Modified: incubator/shindig/trunk/php/src/gadgets/oauth/OAuth.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/oauth/OAuth.php?rev=659220&r1=659219&r2=659220&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/oauth/OAuth.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/oauth/OAuth.php Thu May 22 12:30:10 2008
@@ -369,11 +369,9 @@
 	{
 		$tmp = $this->parameters;
 		$parts = parse_url($this->http_url);
-		$params = parse_str(@$parts['query']);
-		if (count($params) > 1) {
-			for ($i = 0; $i < count($params); $i += 2) {
-				$this->parameters[$params[$i]] = urldecode($params[$i + 1]);
-			}
+		parse_str(@$parts['query'], $params);
+		foreach ($params as $key => $value) {
+			$this->parameters[$key] = $value;
 		}
 		$parts = array($this->get_normalized_http_method(), $this->get_normalized_http_url(), $this->get_signable_parameters());
 		$parts = array_map(array('OAuthUtil', 'urlencodeRFC3986'), $parts);