Author: chabotc
Date: Sun Oct 25 09:24:10 2009
New Revision: 829517
URL: http://svn.apache.org/viewvc?rev=829517&view=rev
Log:
SHINDIG-1206 by Arne Roomann-Kurrik - PHP OAuth proxy generates invalid urls
when signing via URL
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=829517&r1=829516&r2=829517&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/oauth/OAuth.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/oauth/OAuth.php Sun Oct 25 09:24:10
2009
@@ -555,7 +555,7 @@
public static function addParameters($url, $oauthParams) {
$url .= strchr($url, '?') === false ? '?' : '&';
foreach ($oauthParams as $key => $value) {
- $url .=
OAuthUtil::urldecodeRFC3986($key)."=".OAuthUtil::urldecodeRFC3986($value)."&";
+ $url .=
OAuthUtil::urlencodeRFC3986($key)."=".OAuthUtil::urlencodeRFC3986($value)."&";
}
return $url;
}