|
|
@@ -161,9 +161,19 @@ class Zend_Oauth_Client extends Zend_Http_Client
|
|
|
$this->setRawData($raw);
|
|
|
$this->paramsPost = array();
|
|
|
} elseif ($requestScheme == Zend_Oauth::REQUEST_SCHEME_QUERYSTRING) {
|
|
|
- $this->getUri()->setQuery('');
|
|
|
+ $params = array();
|
|
|
+ $query = $this->getUri()->getQuery();
|
|
|
+ if ($query) {
|
|
|
+ $queryParts = split('&', $this->getUri()->getQuery());
|
|
|
+ foreach ($queryParts as $queryPart) {
|
|
|
+ $kvTuple = split('=', $queryPart);
|
|
|
+ $params[$kvTuple[0]] =
|
|
|
+ (array_key_exists(1, $kvTuple) ? $kvTuple[1] : NULL);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$query = $this->getToken()->toQueryString(
|
|
|
- $this->getUri(true), $this->_config, $this->paramsGet
|
|
|
+ $this->getUri(true), $this->_config, $params
|
|
|
);
|
|
|
$this->getUri()->setQuery($query);
|
|
|
$this->paramsGet = array();
|